Hi,
On Mon, Jun 13, 2011 at 5:23 AM, Anton Khirnov <[email protected]> wrote:
> From: Michael Niedermayer <[email protected]>
>
> fixes issue1962
>
> Signed-off-by: Michael Niedermayer <[email protected]>
> Signed-off-by: Anton Khirnov <[email protected]>
> ---
> libavformat/mpeg.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
> index 496b9d4..b8035f0 100644
> --- a/libavformat/mpeg.c
> +++ b/libavformat/mpeg.c
> @@ -69,6 +69,7 @@ static int mpegps_probe(AVProbeData *p)
> // and audio streams
> else if((code & 0xe0) == AUDIO_ID && pes) {audio++; i+=len;}
> else if(code == PRIVATE_STREAM_1 && pes) {priv1++; i+=len;}
> + else if(code == 0x1fd && pes) vid++; //VC1
Something tells me this works around a bug one line above this change:
else if((code & 0xf0) == VIDEO_ID && pes) vid++;
It also contradicts code further down:
} else if (startcode >= 0xfd55 && startcode <= 0xfd5f) {
type = AVMEDIA_TYPE_VIDEO;
codec_id = CODEC_ID_VC1;
I think I need the sample - how to access incoming nowadays?
> - if(vid+audio > invalid) /* invalid VDR files nd short PES streams */
> + if(vid+audio > invalid+1) /* invalid VDR files nd short PES streams
> */
No comment on this one, I don't understand how it related to the rest.
Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel