[FFmpeg-cvslog] flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever metadata changes.

Andrew Stone git at videolan.org
Wed Aug 13 23:43:48 CEST 2014


ffmpeg | branch: master | Andrew Stone <andrew at clovar.com> | Tue Aug 12 17:03:52 2014 -0400| [0f789322efa78a672e4c3027e5cc12b8a947043a] | committer: Anton Khirnov

flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever metadata changes.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavformat/flvdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b9391c3..56c932c 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -498,6 +498,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
             !strcmp(key, "datastream"))
             return 0;
 
+        s->event_flags |= AVFMT_EVENT_FLAG_METADATA_UPDATED;
         if (amf_type == AMF_DATA_TYPE_BOOL) {
             av_strlcpy(str_val, num_val > 0 ? "true" : "false",
                        sizeof(str_val));



More information about the ffmpeg-cvslog mailing list