Mercurial > libavformat.hg
changeset 3582:813a493658ee libavformat
Move the codec_id overriding at a slightly better place.
author | michael |
---|---|
date | Mon, 14 Jul 2008 20:31:17 +0000 |
parents | 3c57739a071d |
children | a81d82e21714 |
files | utils.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Jul 14 19:11:09 2008 +0000 +++ b/utils.c Mon Jul 14 20:31:17 2008 +0000 @@ -563,11 +563,6 @@ return ret; st= s->streams[pkt->stream_index]; - if(!pktl && st->codec->codec_id!=CODEC_ID_PROBE) - return ret; - - add_to_pktbuf(&s->raw_packet_buffer, pkt); - switch(st->codec->codec_type){ case CODEC_TYPE_VIDEO: if(s->video_codec_id) st->codec->codec_id= s->video_codec_id; @@ -580,6 +575,11 @@ break; } + if(!pktl && st->codec->codec_id!=CODEC_ID_PROBE) + return ret; + + add_to_pktbuf(&s->raw_packet_buffer, pkt); + if(st->codec->codec_id == CODEC_ID_PROBE){ AVProbeData *pd = &st->probe_data;