OSDN Git Service

ffplay: remove early frame drop functionality
authorMarton Balint <cus@passwd.hu>
Sun, 9 Oct 2011 13:49:22 +0000 (15:49 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 16 Oct 2011 17:21:01 +0000 (19:21 +0200)
commitd2d8e1e599a4b5c01e5be9267ac85105e843d928
treeb6f6b10ee07dc850deaf291e2ad74e4c27b59527
parent4e268aae55c483ec6c743f741f17a8a0f9250f1e
ffplay: remove early frame drop functionality

The current impementation of early frame drops (dropping frames before adding
them to the picture queue) has multiple problems:

Even after gettin A-V sync, the frame droping continues until
VideoState->skip_frames reaches 1, which can take a lot of time causing useless
additional frame drops and bad AV-sync. This issue can be easily triggered with
for example changing the audio stream.

Also video_refresh currenly does not handle early skipped frames in every case,
for example if we skip a frame, then the last frame duration calculation will
compute the duration of the sum of the skipped frame and the duration of the
frame before that, and in compute_target_delay we may multiply this unusually
big delay.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c