[MPlayer-dev-eng] [BUG][PATCH] Decoding of WMV3 files fail, shows only black screen

Ivan Kalvachev ikalvachev at gmail.com
Sun Jul 3 00:40:38 CEST 2005


On 7/2/05, Shachar Raindel <shacharr at gmail.com> wrote:
> Now, Ivan, the patch you sent in your second e-mail is nice, but sadly
> doesn't solve the bug (since, as I shown to you it is caused by the
> fact that we use frame dropping to decide which frames are keyframes
> and which aren't (which is absolutely crazy).
> The correct fix is to pass the information about which frames are
> key-frames and which aren't from the ASF demuxer to the DMO decoder,
> but this is rather complex, and setting all of the frames to be
> treated as key-frames seems to work fine most of the time.
> 
>    Shachar

I think I found error in my patch ;) It need to be , !flag&2, 0);
Anyway the SYNC flag have nothing to do with keyframes, other than
that an keyframe could be sync point.
The other 2 siblinc to  SYNC flags are to point PTS or duration.
Obviously there should be no problem to have SYNC set at all times.
So it looks the decoder needs to know some pts, no matter if it is valid or not.
(my assumption was that zero flags mean no stream process)

Well if nobody objects I will apply your patch.

BTW I cannot preproduce your problem. File plays just fine even with
cpu thottling set to 5% (well it doesn't play as it need 6 times more
cpu, but i see image at the start, and no errors like yours);

  Ivan Kalvachev
 iive




More information about the MPlayer-dev-eng mailing list