aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-22 01:48:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-22 01:48:11 +0000
commitb4aea108ebe32a190e7f8ec6bddc1214a46c4456 (patch)
tree3b186b5b70dd23451d539b81829139970d7fa003 /ffmpeg.c
parent4cfbbbde4272d3216c0389df2111dfddabf65f1a (diff)
downloadffmpeg-b4aea108ebe32a190e7f8ec6bddc1214a46c4456.tar.gz
support discarding of uninterresting packets
Originally committed as revision 3858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 65f9709863..dc61d6a255 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2900,6 +2900,8 @@ static void opt_input_file(const char *filename)
//fprintf(stderr, "\nInput Audio channels: %d", enc->channels);
audio_channels = enc->channels;
audio_sample_rate = enc->sample_rate;
+ if(audio_disable)
+ ic->streams[i]->discard= 1;
break;
case CODEC_TYPE_VIDEO:
frame_height = enc->height;
@@ -2933,6 +2935,8 @@ static void opt_input_file(const char *filename)
frame_rate_base = rfps_base;
enc->rate_emu = rate_emu;
+ if(video_disable)
+ ic->streams[i]->discard= 1;
break;
case CODEC_TYPE_DATA:
break;