]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vp9_parser.c
Merge commit '11e05533170485b593974cf90916425a0188e7bd'
[ffmpeg] / libavcodec / vp9_parser.c
index af033c25e64639c7171213fcfd9cc38eaefd5439..b188785456b8df09331e74353e0fc1f418848747 100644 (file)
@@ -43,6 +43,7 @@ static int parse(AVCodecParserContext *ctx,
                  const uint8_t *data, int size)
 {
     VP9ParseContext *s = ctx->priv_data;
+    int full_size = size;
     int marker;
 
     if (size <= 0) {
@@ -77,10 +78,12 @@ static int parse(AVCodecParserContext *ctx,
                     idx += a; \
                     if (sz > size) { \
                         s->n_frames = 0; \
+                        *out_size = size; \
+                        *out_data = data; \
                         av_log(avctx, AV_LOG_ERROR, \
                                "Superframe packet size too big: %u > %d\n", \
                                sz, size); \
-                        return size; \
+                        return full_size; \
                     } \
                     if (first) { \
                         first = 0; \