diff options
author | James Almer <jamrial@gmail.com> | 2017-04-08 15:44:53 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-08 17:44:42 -0300 |
commit | 37fcf089b4a29aa90e4a1ce6a54b4fcc75063f78 (patch) | |
tree | d3818834ac0c89ad693d7d715cce418c977b1ee6 | |
parent | f4400a92f58fbe19b14eb675c241f7df310758fd (diff) | |
download | ffmpeg-37fcf089b4a29aa90e4a1ce6a54b4fcc75063f78.tar.gz |
avformat/matroskaenc: don't try to update flac extradata if live streaming
(cherry picked from commit a8b5f375010912abd9d41bde0992c63a548d56a6)
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index af941ceb8f..9c7a213db9 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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) { |