Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-24 04:03:49 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-06-24 04:05:56 +0400
commitcaf7381d502a4e42a099eb56719f80cce00f3ac9 (patch)
tree26ce0e47ed487a51d28c7f631ba84b13eff6898b /ffmpeg.c
parentf8fe4d22957fa4f0249465f2adba2c29d7fd0682 (diff)
ffmpeg: fix mixup of old and new sinks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d7a44a84c3..be28d2b4b0 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -104,8 +104,6 @@
#define VSYNC_VFR 2
#define VSYNC_DROP 0xff
-#define SINKA
-
const char program_name[] = "ffmpeg";
const int program_birth_year = 2000;
@@ -1925,13 +1923,11 @@ static int poll_filters(void)
!(ost->enc->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE))
ret = av_buffersink_read_samples(ost->filter->filter, &picref,
ost->st->codec->frame_size);
- else
-#ifdef SINKA
+ else if(ost->enc->type == AVMEDIA_TYPE_AUDIO)
ret = av_buffersink_read(ost->filter->filter, &picref);
-#else
+ else
ret = av_buffersink_get_buffer_ref(ost->filter->filter, &picref,
AV_BUFFERSINK_FLAG_NO_REQUEST);
-#endif
if (ret < 0) {
if (ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
char buf[256];