History

avformat/movenc: Fix invalid check

Regression since c9de096851803d45444ae9dfe3a390a2d53ac71b. Fixes Coverity ID 1506839.

Andreas Rheinhardt committed 4 years ago

Commit e4be8871 parent 5eb8da61 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/movenc.c+1−1
@@ -424,7 +424,7 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track) · 423 unmodified lines
424424 if (!info->pkt && !(info->pkt = av_packet_alloc()))
425425 return AVERROR(ENOMEM);
426426
427− if ((ret = avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size) < 0)) {
427+ if ((ret = avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size)) < 0) {
428428 if (ret == AVERROR(ENOMEM))
429429 goto end;
430430

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t