aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:55:45 +0000
committerOded Shimon <ods15@ods15.dyndns.org>2006-10-02 05:55:45 +0000
commitfaf7f0ce7ee8f24c22e6b3dcabb8682124f91c15 (patch)
treea76499cee0197ad96f14001a6859022e7681909d
parent128c0dfe9ad7ea9fae8798a36760d85f91cd9af0 (diff)
downloadffmpeg-faf7f0ce7ee8f24c22e6b3dcabb8682124f91c15.tar.gz
Original Commit: r18 | ods15 | 2006-09-22 12:29:26 +0300 (Fri, 22 Sep 2006) | 2 lines
add ability to run encoder for testing purposes... Originally committed as revision 6429 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vorbis_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c
index 1616099ce5..17112272bd 100644
--- a/libavcodec/vorbis_enc.c
+++ b/libavcodec/vorbis_enc.c
@@ -483,7 +483,7 @@ static int vorbis_encode_frame(AVCodecContext * avccontext, unsigned char * pack
avccontext->coded_frame->pts = av_rescale_q(op2->granulepos, (AVRational){1, avccontext->sample_rate}, avccontext->time_base);
memcpy(packets, compressed_frame, l);
#endif
- return 0;
+ return data ? 50 : 0;
}