I have used the AVParser on the bytes that I am receiving, and it looks
like the PTS and DTS are always 0 for each frame.
It's possible I am using it incorrectly:
void FFMpeg::Parse(byte* data, int length, int frameNumber)
{
AVCodecParserContext *parser_context;
uint8_t *poutbuf = new uint8_t[50000];
int poutsize=0;
int pts = 0;
int dts = 0;
parser_context = av_parser_init(CODEC_ID_MPEG4);
int len = av_parser_parse(parser_context, pCodecCtx, &poutbuf,
&poutsize, data, length, pts, dts);
}
The parsing seems to be correct as it is determining the correct
frame-type but please someone correct me if I'm wrong!
Cheers,
Mark.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user