diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2003-10-31 22:26:26 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2003-10-31 22:26:26 +0000 |
commit | ddaae6a9d1ea69b55b842b65e5c664b1e6d15e13 (patch) | |
tree | d239d8ef3b625cac08f0f8166ec65fe25b2e4b2d /ffmpeg.c | |
parent | 99614dd4e924c1083fdf35f49b1da95971dc416f (diff) | |
download | ffmpeg-ddaae6a9d1ea69b55b842b65e5c664b1e6d15e13.tar.gz |
* DV demuxer is now capable of decoding auxilary audio stream. So,
everybody who still uses second streo track for dubbing can
now export it.
* void* -> DVDemuxContext* change (per Fabrice's suggestion).
* -dv1394 capture now works in all modes.
Originally committed as revision 2458 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2542,6 +2542,12 @@ static void prepare_grab(void) fprintf(stderr, "Could not find video grab device\n"); exit(1); } + /* If not enough info to get the stream parameters, we decode the + first frames to get it. */ + if ((ic->ctx_flags & AVFMTCTX_NOHEADER) && av_find_stream_info(ic) < 0) { + fprintf(stderr, "Could not find video grab parameters\n"); + exit(1); + } /* by now video grab has one stream */ ic->streams[0]->r_frame_rate = vp->frame_rate; ic->streams[0]->r_frame_rate_base = vp->frame_rate_base; |