History

avformat/matroskaenc: Check that Cluster has been opened

before setting the field indicating that a Cluster has been opened.

Andreas Rheinhardt committed 6 years ago

Commit 5d24b681 parent 907b7f81 file · +1 −1Browse files

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

Unified · Split

libavformat/matroskaenc.c+1−1
@@ -2311,10 +2311,10 @@ static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_ · 2310 unmodified lines
23112311 }
23122312
23132313 if (mkv->cluster_pos == -1) {
2314− mkv->cluster_pos = avio_tell(s->pb);
23152314 ret = start_ebml_master_crc32(&mkv->cluster_bc, mkv);
23162315 if (ret < 0)
23172316 return ret;
2317+ mkv->cluster_pos = avio_tell(s->pb);
23182318 put_ebml_uint(mkv->cluster_bc, MATROSKA_ID_CLUSTERTIMECODE, FFMAX(0, ts));
23192319 mkv->cluster_pts = FFMAX(0, ts);
23202320 av_log(s, AV_LOG_DEBUG,

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