History

avformat/mov: remove an always true condition

Zhao Zhili committed 4 years ago

Commit 43fe6e11 parent b980d9e1 file · +0 −4Browse files

Unified · Split

libavformat/mov.c+0−4
@@ -7691,9 +7691,6 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 7690 unmodified lines
76917691 atom.size = INT64_MAX;
76927692 while (total_size <= atom.size - 8 && !avio_feof(pb)) {
76937693 int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
7694− a.size = atom.size;
7695− a.type=0;
7696− if (atom.size >= 8) {
76977694 a.size = avio_rb32(pb);
76987695 a.type = avio_rl32(pb);
76997696 if (((a.type == MKTAG('f','r','e','e') && c->moov_retry) ||
@@ -7727,7 +7724,6 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) · 27 unmodified lines
77277724 a.size = avio_rb64(pb) - 8;
77287725 total_size += 8;
77297726 }
7730− }
77317727 av_log(c->fc, AV_LOG_TRACE, "type:'%s' parent:'%s' sz: %"PRId64" %"PRId64" %"PRId64"\n",
77327728 av_fourcc2str(a.type), av_fourcc2str(atom.type), a.size, total_size, atom.size);
77337729 if (a.size == 0) {

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