[FFmpeg-cvslog] avformat/matroskaenc: don't try to update flac extradata if live streaming

James Almer git at videolan.org
Sat Apr 8 23:54:50 EEST 2017


ffmpeg | branch: release/3.3 | James Almer <jamrial at gmail.com> | Sat Apr  8 15:44:53 2017 -0300| [37fcf089b4a29aa90e4a1ce6a54b4fcc75063f78] | committer: James Almer

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

(cherry picked from commit a8b5f375010912abd9d41bde0992c63a548d56a6)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37fcf089b4a29aa90e4a1ce6a54b4fcc75063f78
---

 libavformat/matroskaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {



More information about the ffmpeg-cvslog mailing list