diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-10-29 14:20:56 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-10-29 14:20:56 +0000 |
commit | da24c5e330ab90b5249f4fb94044b78919f64d4f (patch) | |
tree | 00bfea3d2edb36fba0923df778eac27d409e3aed /libavformat/mpeg.c | |
parent | b45a7a18d32e530d784bf2ac0831e27490c3befd (diff) | |
download | ffmpeg-da24c5e330ab90b5249f4fb94044b78919f64d4f.tar.gz |
make AVFMT_NOHEADER flag dynamic - added av_open_input_stream()
Originally committed as revision 2447 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r-- | libavformat/mpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 45ffdf6841..9c138556f1 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -479,6 +479,8 @@ static int mpegps_read_header(AVFormatContext *s, { MpegDemuxContext *m = s->priv_data; m->header_state = 0xff; + s->ctx_flags |= AVFMTCTX_NOHEADER; + /* no need to do more */ return 0; } @@ -705,7 +707,6 @@ AVInputFormat mpegps_demux = { mpegps_read_header, mpegps_read_packet, mpegps_read_close, - .flags = AVFMT_NOHEADER, }; int mpegps_init(void) |