Pass codec pixel format list to get_format, if present, fix vdpau decoding

Originally committed as revision 23396 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Baptiste Coudurier 15 years ago
parent 879c9d1a63
commit 9ad7dfc110
  1. 2
      libavcodec/h264.c

@ -1850,6 +1850,8 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
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);

Loading…
Cancel
Save