Browse Source

avformat/matroskaenc: don't try to update flac extradata if live streaming

tags/n3.4
James Almer 8 years ago
parent
commit
a8b5f37501
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/matroskaenc.c

+ 1
- 1
libavformat/matroskaenc.c View File

@@ -2223,7 +2223,7 @@ static int mkv_check_new_extra_data(AVFormatContext *s, AVPacket *pkt)

switch (par->codec_id) {
case AV_CODEC_ID_FLAC:
if (side_data_size && (s->pb->seekable & AVIO_SEEKABLE_NORMAL)) {
if (side_data_size && (s->pb->seekable & AVIO_SEEKABLE_NORMAL) && !mkv->is_live) {
AVCodecParameters *codecpriv_par;
int64_t curpos;
if (side_data_size != par->extradata_size) {


Loading…
Cancel
Save