avformat/matroskaenc: don't try to update flac extradata if live streaming
authorJames Almer <jamrial@gmail.com>
Sat, 8 Apr 2017 18:44:53 +0000 (15:44 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 8 Apr 2017 20:44:42 +0000 (17:44 -0300)
(cherry picked from commit a8b5f375010912abd9d41bde0992c63a548d56a6)

libavformat/matroskaenc.c

index af941ce..9c7a213 100644 (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) {