Mercurial > libavcodec.hg
diff h264.c @ 11800:966aa6b53dcf libavcodec
Pass codec pixel format list to get_format, if present, fix vdpau decoding
| author | bcoudurier |
|---|---|
| date | Mon, 31 May 2010 22:01:31 +0000 |
| parents | cb40fa41b796 |
| children | fdafbcef52f5 |
line wrap: on
line diff
--- a/h264.c Sun May 30 23:57:51 2010 +0000 +++ b/h264.c Mon May 31 22:01:31 2010 +0000 @@ -1850,6 +1850,8 @@ h->sps.num_units_in_tick, den, 1<<30); } s->avctx->pix_fmt = s->avctx->get_format(s->avctx, + s->avctx->codec->pix_fmts ? + s->avctx->codec->pix_fmts : s->avctx->color_range == AVCOL_RANGE_JPEG ? hwaccel_pixfmt_list_h264_jpeg_420 : ff_hwaccel_pixfmt_list_420);
