Remove #ifdef for FFmpeg.
This commit is contained in:
parent
ec7dab05e8
commit
231680944f
|
@ -147,11 +147,7 @@ static bool init_muxer(ffemu_t *handle)
|
||||||
AVFormatContext *ctx = avformat_alloc_context();
|
AVFormatContext *ctx = avformat_alloc_context();
|
||||||
av_strlcpy(ctx->filename, handle->params.filename, sizeof(ctx->filename));
|
av_strlcpy(ctx->filename, handle->params.filename, sizeof(ctx->filename));
|
||||||
ctx->oformat = av_guess_format(NULL, ctx->filename, NULL);
|
ctx->oformat = av_guess_format(NULL, ctx->filename, NULL);
|
||||||
#ifdef AVIO_FLAG_WRITE
|
|
||||||
if (avio_open(&ctx->pb, ctx->filename, AVIO_FLAG_WRITE) < 0)
|
if (avio_open(&ctx->pb, ctx->filename, AVIO_FLAG_WRITE) < 0)
|
||||||
#else
|
|
||||||
if (url_fopen(&ctx->pb, ctx->filename, URL_WRONLY) < 0)
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
av_free(ctx);
|
av_free(ctx);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue