This test does no encoding, setting the flag was done just to silence
the warning removed in the previous commit.
---
 libavformat/movenc-test.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/movenc-test.c b/libavformat/movenc-test.c
index 6520aea..cfd07aa 100644
--- a/libavformat/movenc-test.c
+++ b/libavformat/movenc-test.c
@@ -170,7 +170,6 @@ static void init_fps(int bf, int audio_preroll, int fps)
     if (!st->codec->extradata)
         exit(1);
     memcpy(st->codec->extradata, h264_extradata, sizeof(h264_extradata));
-    st->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
     video_st = st;
 
     st = avformat_new_stream(ctx, NULL);
@@ -187,7 +186,6 @@ static void init_fps(int bf, int audio_preroll, int fps)
     if (!st->codec->extradata)
         exit(1);
     memcpy(st->codec->extradata, aac_extradata, sizeof(aac_extradata));
-    st->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
     audio_st = st;
 
     if (avformat_write_header(ctx, &opts) < 0)
-- 
2.0.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to