summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-27 22:59:42 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-27 22:59:42 +0000
commit1501987b465de317c0e65e5fb5063ee0ea83f95a (patch)
tree214c67840e0d1a293f8fac563e1d047b9886779a /ffmpeg.c
parentc81f034988f173a5cc0cf75c3384652fe7fe73bd (diff)
Audio support for DV1394 by Max Krasnyansky
Originally committed as revision 1516 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 8fb82e6e0f..7288fc99e6 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1886,7 +1886,7 @@ void opt_audio_device(const char *arg)
void opt_dv1394(const char *arg)
{
video_grab_format = "dv1394";
- audio_grab_format = "none";
+ audio_grab_format = NULL;
}
void opt_audio_codec(const char *arg)
@@ -2482,7 +2482,7 @@ void prepare_grab(void)
dump_format(ic, nb_input_files, "", 0);
nb_input_files++;
}
- if (has_audio) {
+ if (has_audio && audio_grab_format) {
AVInputFormat *fmt1;
fmt1 = av_find_input_format(audio_grab_format);
ap->device = audio_device;