aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-05-08 07:00:17 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-05-09 09:33:49 +0800
commitde7b690300be8c7423aa9625fa0ee5637ff38673 (patch)
tree06c180e0e2f1b200e2b8692e22bae1a11af3cd46 /libavcodec
parent18e2c0e732047e8e636f8b76509ae4f1f947ce5b (diff)
downloadffmpeg-de7b690300be8c7423aa9625fa0ee5637ff38673.tar.gz
avcodec/mpegvideo: return more specific error codes for init_duplicate_context()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index d174d1282e..49fd1c999d 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -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)