diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-04 19:23:36 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-10-04 19:23:36 +0000 |
commit | 0dfb266f56e0fcaab1b515c28ba4f4b44051acdf (patch) | |
tree | 3a780dc203f8b508dafe7a58bd1cb733f0be4283 /libmpdemux/demux_rawdv.c | |
parent | 9561550982037b3b8917efa48774f9019f445bbe (diff) | |
download | mpv-0dfb266f56e0fcaab1b515c28ba4f4b44051acdf.tar.bz2 mpv-0dfb266f56e0fcaab1b515c28ba4f4b44051acdf.tar.xz |
This just corrects a function name to match the other demuxer's
"xxx_check_file" convention, adds a verbose note about (to match the other
demuxers)
patch by Kees Cook <mplayer@outflux.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7595 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_rawdv.c')
-rw-r--r-- | libmpdemux/demux_rawdv.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libmpdemux/demux_rawdv.c b/libmpdemux/demux_rawdv.c index 27c7e5601e..ff7d1e17f9 100644 --- a/libmpdemux/demux_rawdv.c +++ b/libmpdemux/demux_rawdv.c @@ -59,12 +59,15 @@ void demux_seek_rawdv(demuxer_t *demuxer,float rel_seek_secs,int flags) frames->current_filepos=newpos*frames->frame_size; } -int check_file_rawdv(demuxer_t *demuxer) +int rawdv_check_file(demuxer_t *demuxer) { unsigned char tmp_buffer[DV_PAL_FRAME_SIZE]; int bytes_read=0; int result=0; dv_decoder_t *td; + + mp_msg(MSGT_DEMUX,MSGL_V,"Checking for DV\n"); + stream_reset(demuxer->stream); stream_seek(demuxer->stream, 0); bytes_read=stream_read(demuxer->stream,tmp_buffer,DV_PAL_FRAME_SIZE); @@ -105,7 +108,7 @@ int demux_rawdv_fill_buffer(demuxer_t *demuxer) dp_video->pos=frames->current_filepos; dp_video->flags=0; - if (demuxer->audio) + if (demuxer->audio && demuxer->audio->id!=-2) { demux_packet_t* dp_audio=clone_demux_packet(dp_video); ds_add_packet(demuxer->audio,dp_audio); |