> Hi, Anyone have idea regarding my problem then please help me. i am
> not able to decode P-Frame only.Please help me by telling what i am
> missing?

I'm not sure if it's relevant to your issue, but I experienced a
problem with mpeg4 streams produced by old xvid encoder, and the
following patch solved it:
In mpeg4videocode.c, in decode_vol_header() function, substitute the
following line:

  //s->time_increment_bits = av_log2(s->avctx->time_base.den - 1) + 1;

with the following code:

if (s->avctx->time_base.den > 0)
{
  if (s->avctx->time_base.den % 2)
    s->time_increment_bits = av_log2(s->avctx->time_base.den - 1) + 1;
  else
    s->time_increment_bits = av_log2(s->avctx->time_base.den) + 1;
}
else
{
  s->time_increment_bits = 1;
}
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to