[FFmpeg-cvslog] bintext: remove unneeded get_buffer()

Michael Niedermayer git at videolan.org
Fri Sep 16 06:14:16 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 16 05:30:36 2011 +0200| [fa2dbcd46ab067b8900a58c499dcfabb190a8854] | committer: Michael Niedermayer

bintext: remove unneeded get_buffer()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fa2dbcd46ab067b8900a58c499dcfabb190a8854
---

 libavcodec/bintext.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/libavcodec/bintext.c b/libavcodec/bintext.c
index 0726d46..a4467b3 100644
--- a/libavcodec/bintext.c
+++ b/libavcodec/bintext.c
@@ -49,12 +49,6 @@ static av_cold int decode_init(AVCodecContext *avctx)
     int i;
 
     avctx->pix_fmt = PIX_FMT_PAL8;
-    s->frame.reference = 1;
-    if (avctx->get_buffer(avctx, &s->frame)) {
-        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
-        return -1;
-    }
-
     p = avctx->extradata;
     if (p) {
         s->font_height = p[0];



More information about the ffmpeg-cvslog mailing list