summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorAndrew Stone <andrew@clovar.com>2014-08-12 17:03:52 -0400
committerAnton Khirnov <anton@khirnov.net>2014-08-13 16:23:28 +0000
commit0f789322efa78a672e4c3027e5cc12b8a947043a (patch)
treeb3e8c72d2325a0e0d26dc17bc5a448e93465ac58 /libavformat/flvdec.c
parent93c04e095dc37ebdab22174e88cfa91e24940866 (diff)
flvdec: update AVFormatContext.event_flags with METADATA_UPDATED whenever metadata changes.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b9391c3796..56c932c77c 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));