mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '2007082d2db25f9305b8a345798b840ea7784fdb'
* commit '2007082d2db25f9305b8a345798b840ea7784fdb':
mov: check ff_get_wav_header() return value
Conflicts:
libavformat/mov.c
See: 6d55a40b00
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
4cd4a6de4f
|
@ -691,16 +691,16 @@ static int mov_read_chan(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||||
static int mov_read_wfex(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
static int mov_read_wfex(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||||
{
|
{
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
|
int ret;
|
||||||
|
|
||||||
if (c->fc->nb_streams < 1)
|
if (c->fc->nb_streams < 1)
|
||||||
return 0;
|
return 0;
|
||||||
st = c->fc->streams[c->fc->nb_streams-1];
|
st = c->fc->streams[c->fc->nb_streams-1];
|
||||||
|
|
||||||
if (ff_get_wav_header(pb, st->codec, atom.size) < 0) {
|
if ((ret = ff_get_wav_header(pb, st->codec, atom.size)) < 0)
|
||||||
av_log(c->fc, AV_LOG_WARNING, "get_wav_header failed\n");
|
av_log(c->fc, AV_LOG_WARNING, "get_wav_header failed\n");
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mov_read_pasp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
static int mov_read_pasp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||||
|
|
Loading…
Reference in New Issue