[FFmpeg-devel] dv_read_seek fix for audio stream seek

Maksym Veremeyenko verem
Wed Jun 13 12:41:39 CEST 2007


Dear Developers!

I found a problem with seeking with raw DV format. Problem that seeking 
function 'dv_read_seek' do not depends on stream and use video timebase 
to calc offset in file. If i point audio stream as argument - it seek to 
wrong position due to audio has fixed 1/30000 timebase but video 1/25 or 
1001/30000 depends on format.

Attached patch fix that problem - add recalculating of timestamp if 
stream index is greater 0 (audio streams).


-- 
________________________________________
Maksym Veremeyenko

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dv_read_seek_audio_stream_fix.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070613/afad2e93/attachment.bin>



More information about the ffmpeg-devel mailing list