summaryrefslogtreecommitdiffstats
path: root/libavformat/ircamenc.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <[email protected]>2016-10-19 19:23:49 +0200
committerAndreas Cadhalpun <[email protected]>2016-10-19 23:13:28 +0200
commita5b4476a602f31e451b11ca0c18bc92be130a50e (patch)
treec3624879a4333e14ea6bc9374789ba57a268952c /libavformat/ircamenc.c
parentdfe7e5501d4acf007f66f7ad8606499f7d7dc2cb (diff)
avformat: prevent triggering request_probe assert in ff_read_packet
If probe_codec is called with pkt == NULL, it sets probe_packets to 0 and request_probe to -1. However, request_probe can change when calling s->iformat->read_packet and thus a probe_packets value of 0 doesn't guarantee a request_probe value of -1. In that case calling probe_codec again is necessary to prevent triggering the assert. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
Diffstat (limited to 'libavformat/ircamenc.c')
0 files changed, 0 insertions, 0 deletions