Browse Source

avcodec/utils: Assert that the number of consumed bytes in avcodec_decode_audio4() is <= the input size

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Michael Niedermayer 9 years ago
parent
commit
38433345e5
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/utils.c

+ 2
- 0
libavcodec/utils.c View File

@@ -2422,6 +2422,8 @@ fail:
av_frame_unref(frame);
}

av_assert0(ret <= avpkt->size);

return ret;
}



Loading…
Cancel
Save