[FFmpeg-cvslog] Reimplement stream probe try #2

Baptiste Coudurier baptiste.coudurier at gmail.com
Mon Apr 4 20:06:23 CEST 2011


On 4/3/11 9:20 AM, Michael Niedermayer wrote:
> [...]
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 803acb3..71e8d73 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c
> @@ -704,10 +704,10 @@ static int mpegts_push_data(MpegTSFilter *filter,
>                          code != 0x1ff && code != 0x1f2 && /* program_stream_directory, DSMCC_stream */
>                          code != 0x1f8) {                  /* ITU-T Rec. H.222.1 type E stream */
>                          pes->state = MPEGTS_PESHEADER;
> -                        if (pes->st->codec->codec_id == CODEC_ID_NONE) {
> +                        if (!pes->st->request_probe) {
>                              av_dlog(pes->stream, "pid=%x stream_type=%x probing\n",
>                                      pes->pid, pes->stream_type);
> -                            pes->st->codec->codec_id = CODEC_ID_PROBE;
> +                            pes->st->request_probe= 1;
>                          }

Humm, the check against CODEC_ID_NONE must not be changed, why was it ?

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org


More information about the ffmpeg-cvslog mailing list