Commit 948c3a13 authored by Roman Shaposhnik's avatar Roman Shaposhnik Committed by Michael Niedermayer

support for PAL 4:1:1 SMPTE 314M DV streams patch by (Roman Shaposhnick <rvs at sun dot com>)

Originally committed as revision 1612 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent cd58d048
......@@ -546,11 +546,13 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
if (buf_size < packet_size)
return -1;
/* XXX: is it correct to assume that 420 is always used in PAL
mode ? */
s->sampling_411 = !dsf;
/* NTSC[dsf == 0] is always 720x480, 4:1:1
* PAL[dsf == 1] is always 720x576, 4:2:0 for IEC 68134[apt == 0]
* but for the SMPTE 314M[apt == 1] it is 720x576, 4:1:1
*/
s->sampling_411 = !dsf || apt;
if (s->sampling_411) {
mb_pos_ptr = dv_place_411;
mb_pos_ptr = dsf ? dv_place_411P : dv_place_411;
avctx->pix_fmt = PIX_FMT_YUV411P;
} else {
mb_pos_ptr = dv_place_420;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment