[FFmpeg-devel] [PATCH]Forward field information from mov container to decoded v210 frames

Michael Niedermayer michaelni at gmx.at
Sat Jul 27 14:03:10 CEST 2013


On Sat, Jul 27, 2013 at 10:43:14AM +0200, Carl Eugen Hoyos wrote:
> Hi!
> 
> As reported by Dave Rice on ffmpeg-user, ffmpeg does not keep field 
> (interlace-) information when reencoding v210.
> Attached patch (by Tim Nicholson) fixes this afaict.
> 
> Please comment, Carl Eugen

>  v210dec.c |    7 +++++++
>  1 file changed, 7 insertions(+)
> 38414657a7c89701b384d9bc6151055e66a7dba6  patchv210interlaced.diff
> diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
> index 42e25cc..9a780a9 100644
> --- a/libavcodec/v210dec.c
> +++ b/libavcodec/v210dec.c
> @@ -146,6 +146,13 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
>          v += pic->linesize[2] / 2 - avctx->width / 2;
>      }
>  
> +    if (avctx->field_order > AV_FIELD_PROGRESSIVE) { /* we have interlaced material flagged in conta
> +iner */

wh
y?

rest should b ok


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130727/6c34f05e/attachment.asc>


More information about the ffmpeg-devel mailing list