mirror of https://github.com/FFmpeg/FFmpeg.git
If writing a packet didn't directly return an error, the AVIOContext's error flag is checked for errors (if existing) by write_packet(). And if write_packet() didn't indicate an error, its callers checked the error flag of the AVIOContext (if existing). The latter check is redundant. The reason for checking twice lies in the FFmpeg-Libav split: The check in write_packet() has been added inpull/336/head9ad1e0c1
in Libav. FFmpeg already had the other checks (sinceaec9390a
), but when9ad1e0c1
was merged (in1f1c1008
), no one noticed the redundant checks. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
parent
cc2a9509ce
commit
5c5ab88967
1 changed files with 0 additions and 6 deletions
Loading…
Reference in new issue