diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 38aa4d2ebf41652b1fb4e8019aafef425c057819..b417c68e4597c5ecb8a2bc9b6e55059154c5bea8 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -80,6 +80,11 @@ const enum PixelFormat ff_pixfmt_list_420[] = { PIX_FMT_NONE }; +const enum PixelFormat ff_hwaccel_pixfmt_list_420[] = { + PIX_FMT_YUV420P, + PIX_FMT_NONE +}; + const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end, uint32_t * restrict state){ int i; diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 8e324ae2bab35479d400c0877b87a66ed9537fd8..0f099759dc03c2a6a13939633635a8abfe86fd90 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -709,6 +709,7 @@ void ff_init_block_index(MpegEncContext *s); void ff_copy_picture(Picture *dst, Picture *src); extern const enum PixelFormat ff_pixfmt_list_420[]; +extern const enum PixelFormat ff_hwaccel_pixfmt_list_420[]; static inline void ff_update_block_index(MpegEncContext *s){ const int block_size= 8>>s->avctx->lowres;