diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-10-25 18:19:16 +0400 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-11-15 21:04:53 +0400 |
commit | 566de8cde29d999fd05c477158adbd580b8522c7 (patch) | |
tree | 7e8bb467720015b1a0e49e2c7205ca2afccc9475 /avserver.c | |
parent | 39c4afd926944a716c3b11b321cea7f7c798e9e7 (diff) |
avserver: replace av_read_packet with av_read_frame
Diffstat (limited to 'avserver.c')
-rw-r--r-- | avserver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/avserver.c b/avserver.c index 7b38c23dc3..ad7bc78f0c 100644 --- a/avserver.c +++ b/avserver.c @@ -3562,6 +3562,8 @@ static void extract_mpeg4_header(AVFormatContext *infile) AVStream *st; const uint8_t *p; + infile->flags |= AVFMT_FLAG_NOFILLIN | AVFMT_FLAG_NOPARSE; + mpeg4_count = 0; for(i=0;i<infile->nb_streams;i++) { st = infile->streams[i]; @@ -3575,7 +3577,7 @@ static void extract_mpeg4_header(AVFormatContext *infile) printf("MPEG4 without extra data: trying to find header in %s\n", infile->filename); while (mpeg4_count > 0) { - if (av_read_packet(infile, &pkt) < 0) + if (av_read_frame(infile, &pkt) < 0) break; st = infile->streams[pkt.stream_index]; if (st->codec->codec_id == AV_CODEC_ID_MPEG4 && |