Thanks, i have also tried this once. but it did not work for me.
Please see the code below that i have to put AVCodecContext->extradata.
uint8_t dci[512] = {0,};
int dci_size;
char octet[3];
octet[2]=0;
char str [] =
"000001B0F3000001B50EE040C0CF0000010000000120008440FA283020F2A21F";
int i,j,max=strlen(str);
for(i=0,j=0;i<max;i+=2,++j){
octet[0]=str[i];
octet[1]=str[i+1];
dci[j]=(uint8_t)strtol(octet,NULL,16);
}
apContext->extradata = (unsigned char*)dci;
apContext->extradata_size = j;
On 8/12/10, Ronald S. Bultje <[email protected]> wrote:
> Hi,
>
> On Wed, Aug 11, 2010 at 3:04 PM, Umakant Goyal <[email protected]>
> wrote:
>> Please find the code as an attachment.
>
> I don't see you setting AVCodecContext->extradata, which is in
> fmtp:config of the SDP. It might be much more convenient to use
> libavformat for parsing your MPEG-4 data, using our RTP/RTSP layer
> (see libavformat/rtpdec_mpeg4.c).
>
> Ronald
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user