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

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-05-08 07:00:17 +08:00
parent 18e2c0e732
commit de7b690300
1 changed files with 1 additions and 1 deletions

View File

@ -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)