]> git.sesse.net Git - ffmpeg/commit
avformat: Improve returned error codes
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 7 Jan 2020 13:55:44 +0000 (14:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Jan 2020 00:32:26 +0000 (01:32 +0100)
commit45e7c67affb57f0286fc111e61686025f4ef4a04
treec00b4d1c671acb6f59837c2f41064340ed5a862e
parentbb20f3dd730689c3a99f7820cff8b74b06992fff
avformat: Improve returned error codes

This commit improves returned error codes by forwarding error codes. In
some instances, the hardcoded returned error codes made no sense at all:
The normal error code for failure of av_new_packet() is AVERROR(ENOMEM),
yet there were instances where AVERROR(EIO) was returned.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/4xm.c
libavformat/flic.c
libavformat/idroqdec.c
libavformat/psxstr.c
libavformat/rmdec.c
libavformat/vqf.c