[FFmpeg-cvslog] proresdec: support mixed interlaced/non-interlaced content
Michael Smith
git at videolan.org
Mon Jul 29 03:25:49 CEST 2013
ffmpeg | branch: release/0.10 | Michael Smith <msmith at rdio.com> | Mon Jan 21 19:40:35 2013 +0100| [4941dfb4f6de5f4a9fbb31b6fc07829bd58a5269] | committer: Reinhard Tartler
proresdec: support mixed interlaced/non-interlaced content
Set interlaced to false if we don't have an interlaced frame
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
(cherry picked from commit 0881cbf314982cce8448bd12644ce2a6e0b8c576)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
(cherry picked from commit 1fa37f2bfa0f5c50ce61dedf2bbb772d96d71101)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4941dfb4f6de5f4a9fbb31b6fc07829bd58a5269
---
libavcodec/proresdec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 031760c..bc99665 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -186,6 +186,8 @@ static int decode_frame_header(ProresContext *ctx, const uint8_t *buf,
if (ctx->frame_type) { /* if interlaced */
ctx->picture.interlaced_frame = 1;
ctx->picture.top_field_first = ctx->frame_type & 1;
+ } else {
+ ctx->picture.interlaced_frame = 0;
}
ctx->alpha_info = buf[17] & 0xf;
More information about the ffmpeg-cvslog
mailing list