[FFmpeg-cvslog] r25352 - trunk/libavcodec/h264.c

cehoyos subversion
Tue Oct 5 19:24:18 CEST 2010


Author: cehoyos
Date: Tue Oct  5 19:24:18 2010
New Revision: 25352

Log:
Do not assume PIX_FMT_YUV420P will remain the only supported output format for H264.

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Tue Oct  5 18:35:33 2010	(r25351)
+++ trunk/libavcodec/h264.c	Tue Oct  5 19:24:18 2010	(r25352)
@@ -1917,7 +1917,7 @@ static int decode_slice_header(H264Conte
                 if (prev) {
                     av_image_copy(h->short_ref[0]->data, h->short_ref[0]->linesize,
                                   (const uint8_t**)prev->data, prev->linesize,
-                                  PIX_FMT_YUV420P, s->mb_width*16, s->mb_height*16);
+                                  s->avctx->pix_fmt, s->mb_width*16, s->mb_height*16);
                     h->short_ref[0]->poc = prev->poc+2;
                 }
                 h->short_ref[0]->frame_num = h->prev_frame_num;



More information about the ffmpeg-cvslog mailing list