diff options
author | Wolfgang Hesseler <qv@multimediaware.com> | 2003-02-16 23:05:38 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-02-16 23:05:38 +0000 |
commit | 7604246d1a27a0c32e036bb01704787c435fa153 (patch) | |
tree | 7ea7cf2a9983f549dc42b1b4d178097ab3579405 /libavcodec/rv10.c | |
parent | 0a6de063b05088c9c9556f0aefd2171906e8baf4 (diff) | |
download | ffmpeg-7604246d1a27a0c32e036bb01704787c435fa153.tar.gz |
more #ifdef CONFIG_ENCODERS patch by (Wolfgang Hesseler <qv at multimediaware dot com>) with modifications by me (s/WOLFGANG/CONFIG_ENCODERS/ and some other fixes)
Originally committed as revision 1588 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv10.c')
-rw-r--r-- | libavcodec/rv10.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c index 06c7154e2d..6ed93b2abd 100644 --- a/libavcodec/rv10.c +++ b/libavcodec/rv10.c @@ -220,6 +220,8 @@ int rv_decode_dc(MpegEncContext *s, int n) return -code; } +#ifdef CONFIG_ENCODERS + /* write RV 1.0 compatible frame header */ void rv10_encode_picture_header(MpegEncContext *s, int picture_number) { @@ -262,6 +264,8 @@ static int get_num(GetBitContext *gb) } } +#endif //CONFIG_ENCODERS + /* read RV 1.0 compatible frame header */ static int rv10_decode_picture_header(MpegEncContext *s) { @@ -330,7 +334,7 @@ static int rv10_decode_picture_header(MpegEncContext *s) static int rv10_decode_init(AVCodecContext *avctx) { MpegEncContext *s = avctx->priv_data; - static int done; + static int done=0; s->avctx= avctx; s->out_format = FMT_H263; |