aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-04-08 15:44:53 -0300
committerJames Almer <jamrial@gmail.com>2017-04-08 17:44:42 -0300
commit37fcf089b4a29aa90e4a1ce6a54b4fcc75063f78 (patch)
treed3818834ac0c89ad693d7d715cce418c977b1ee6
parentf4400a92f58fbe19b14eb675c241f7df310758fd (diff)
downloadffmpeg-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.c2
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) {