mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
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:
parent
18e2c0e732
commit
de7b690300
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user