vp9_parser: allow superframes with a single frame.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 6 Nov 2015 16:57:07 +0000 (11:57 -0500)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 6 Nov 2015 22:12:03 +0000 (17:12 -0500)
libavcodec/vp9_parser.c

index 6713850..2e9235e 100644 (file)
@@ -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));