aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/qsvdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-20 21:14:15 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:58 +0100
commit7b4ff1a19a1d7118d95612ef2950de712ce4ba0d (patch)
treec807b680539c05121d0db24e49cfce08d29b4012 /doc/examples/qsvdec.c
parent287a06cb1b194ddcf4d7d4484b6fc3fbb108801b (diff)
downloadffmpeg-7b4ff1a19a1d7118d95612ef2950de712ce4ba0d.tar.gz
avformat/rmdec: Actually return value < 0 on read_header failure
The RealMedia demuxer's read_header function initially initializes ret, the variable designated for the return variable to -1. Afterwards, chunks of the file are parsed in a loop until an error happens or until the actual frame data is encountered. If the first function whose return value is put into ret doesn't fail, then ret contains a value >= 0 (actually == 0) and this is what will be returned if an error is encountered afterwards. This is a regression since 35bbc1955a58ba74552c50d9161084644f00bbd3. Before that, ret had never been overwritten with a nonnegative value. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 4cc43d30c387fda30e34b7075670dfb28e868acb)
Diffstat (limited to 'doc/examples/qsvdec.c')
0 files changed, 0 insertions, 0 deletions