Solved it by following code under *decode* function of decoder.

if(*av_bitstream_filter_filter*(decoder->bsf, avctx, "*private_spspps_buf*",
                                        &decoder->pkt.data,
&decoder->pkt.size,
                                        avpkt->data, avpkt->size,
!!(avpkt->flags & AV_PKT_FLAG_KEY)) < 0)
{
    ERROR("Error: unable to convert data from avcc to annexb");
}
else
{
    //Do decoding of decoder->pkt.data instead of avpkt->data
}



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-Demuxer-not-giving-proper-data-to-decoder-tp4662628p4662661.html
Sent from the libav-users mailing list archive at Nabble.com.
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to