[MPlayer-dev-eng] Re: [PATCH] -identify vids, aids, sids, alangs and slangs

Nico Sabbi nsabbi at tiscali.it
Thu Nov 11 11:06:20 CET 2004


Nico Sabbi wrote:

> Moritz Bunkus wrote:
>
>> Hey,
>>
>> no more objections from my side. I'd like to apply this soon, but I'll
>> have to test it first ;) So pending further problems and objections from
>> others I'll apply it on Sunday.
>>
>> Mosu
>>
>>  
>>
>
> I just realized that the changes in demux_ts are not enough: in 
> ts_parse(), where I assign
> the fields of &es, I don't set the language for audio pids; to do it 
> you need the attached patch, but
> I won't have time to test it before tonight
>
>------------------------------------------------------------------------
>
>Index: demux_ts.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
>retrieving revision 1.19
>diff -c -u -r1.19 demux_ts.c
>--- demux_ts.c	11 Oct 2004 06:57:57 -0000	1.19
>+++ demux_ts.c	11 Nov 2004 09:51:41 -0000
>@@ -1967,7 +1967,19 @@
> 				}
> 				else
> 				{
>+					uint8_t *lang;
>+					
> 					tss->type = es->type;
>+					if(is_audio)
>+					    lang = pid_lang_from_pmt(priv, es->pid);
>+					if(lang != NULL)
>+					{
>+					    memcpy(es->lang, lang, 3);
>+					    es->lang[0] = 0;
>  
>

1000l, this must be                                  es->lang[3] = 0;    
           

>+					}
>+					else
>+					    es->lang[0] = 0;
>+					    
> 					return 1;
> 				}
> 			}
>  
>
>------------------------------------------------------------------------
>




More information about the MPlayer-dev-eng mailing list