diff options
author | Mark Harris <mark.hsj@gmail.com> | 2016-02-15 23:52:12 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-20 02:56:25 +0100 |
commit | 1b4fbf808082eaa6945e5fc2cda487573691e8e6 (patch) | |
tree | ff09b3357f28eb954bfe3ddc0f59122fddc8c1f4 /libavcodec/g723_1dec.c | |
parent | e6cbe3ffef8b456eb70a5f8e03559dbd776dff68 (diff) | |
download | ffmpeg-1b4fbf808082eaa6945e5fc2cda487573691e8e6.tar.gz |
avformat/icodec: ico probe with unknown data
Fix cases where unknown data (data beyond p->buf_size) could produce a
higher ico probe score than if the unknown data was known and valid.
For example:
Header: OK, 2 frames
Frame 0: Unknown (offset points beyond end of probe buffer)
Frame 1: Invalid
Previously this example had a score of 25, even though the score would
be 1 if the unknown frame was known to be valid or 0 if it was known
to be invalid. For this example the score is now 1.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/g723_1dec.c')
0 files changed, 0 insertions, 0 deletions