mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-11 17:20:00 +00:00
avformat/movenc: Fix invalid check
Regression since c9de096851
.
Fixes Coverity ID 1506839.
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5eb8da6a81
commit
e4be88704f
@ -424,7 +424,7 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
|
||||
if (!info->pkt && !(info->pkt = av_packet_alloc()))
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
if ((ret = avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size) < 0)) {
|
||||
if ((ret = avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size)) < 0) {
|
||||
if (ret == AVERROR(ENOMEM))
|
||||
goto end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user