Commit de7b6903 authored by Limin Wang's avatar Limin Wang

avcodec/mpegvideo: return more specific error codes for init_duplicate_context()

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
parent 18e2c0e7
......@@ -408,7 +408,7 @@ static int init_duplicate_context(MpegEncContext *s)
return 0;
fail:
return -1; // free() through ff_mpv_common_end()
return AVERROR(ENOMEM); // free() through ff_mpv_common_end()
}
static void free_duplicate_context(MpegEncContext *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment