OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c77e0c2
)
libzvbi-teletextdec: set bitmap teletext canvas dimensions
author
Marton Balint
<cus@passwd.hu>
Sat, 7 Dec 2013 16:51:19 +0000
(17:51 +0100)
committer
Marton Balint
<cus@passwd.hu>
Sat, 14 Dec 2013 14:57:44 +0000
(15:57 +0100)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/libzvbi-teletextdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/libzvbi-teletextdec.c
b/libavcodec/libzvbi-teletextdec.c
index
664906a
..
abc24c3
100644
(file)
--- a/
libavcodec/libzvbi-teletextdec.c
+++ b/
libavcodec/libzvbi-teletextdec.c
@@
-474,6
+474,11
@@
static int teletext_init_decoder(AVCodecContext *avctx)
return AVERROR_EXTERNAL;
}
+ if (ctx->format_id == 0) {
+ avctx->width = 41 * BITMAP_CHAR_WIDTH;
+ avctx->height = 25 * BITMAP_CHAR_HEIGHT;
+ }
+
ctx->dx = NULL;
ctx->vbi = NULL;
ctx->pts = AV_NOPTS_VALUE;