[FFmpeg-cvslog] vp9_parser: allow superframes with a single frame.

Ronald S. Bultje git at videolan.org
Fri Nov 6 23:12:18 CET 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Nov  6 11:57:07 2015 -0500| [20db54906f558796596ba1d03b56dedf0aa25f8c] | committer: Ronald S. Bultje

vp9_parser: allow superframes with a single frame.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20db54906f558796596ba1d03b56dedf0aa25f8c
---

 libavcodec/vp9_parser.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp9_parser.c b/libavcodec/vp9_parser.c
index 6713850..2e9235e 100644
--- a/libavcodec/vp9_parser.c
+++ b/libavcodec/vp9_parser.c
@@ -132,7 +132,7 @@ static int parse(AVCodecParserContext *ctx,
                     size -= sz; \
                 } \
                 parse_frame(ctx, *out_data, *out_size); \
-                return *out_size
+                return s->n_frames > 0 ? *out_size : full_size
 
                 case_n(1, *idx);
                 case_n(2, AV_RL16(idx));



More information about the ffmpeg-cvslog mailing list