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

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/338/head
Limin Wang 5 years ago
parent 18e2c0e732
commit de7b690300
  1. 2
      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)

Loading…
Cancel
Save