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

James Almer git at videolan.org
Sat Apr 8 21:46:16 EEST 2017


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Apr  8 15:44:53 2017 -0300| [a8b5f375010912abd9d41bde0992c63a548d56a6] | committer: James Almer

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

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

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

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index af941ce..9c7a213 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