1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Andrew Stone 2014-08-12 17:03:52 -04:00 committed by Anton Khirnov
parent 93c04e095d
commit 0f789322ef

View File

@ -498,6 +498,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream,
!strcmp(key, "datastream")) !strcmp(key, "datastream"))
return 0; return 0;
s->event_flags |= AVFMT_EVENT_FLAG_METADATA_UPDATED;
if (amf_type == AMF_DATA_TYPE_BOOL) { if (amf_type == AMF_DATA_TYPE_BOOL) {
av_strlcpy(str_val, num_val > 0 ? "true" : "false", av_strlcpy(str_val, num_val > 0 ? "true" : "false",
sizeof(str_val)); sizeof(str_val));