comparison xsubdec.c @ 8810:367e4d405cd9 libavcodec

Set AVSubtitle format to 0. Neither dvdsubdec nor xsubdec intializes format to 0, but ffplay checks it before displaying subtitles (ffplay.c:1437). patch by Bj«Órn Axelsson, gecko acc.umu se
author diego
date Thu, 12 Feb 2009 01:27:56 +0000
parents 6fc3497dc81f
children 54bc8a2727b0
comparison
equal deleted inserted replaced
8809:425f99bb62df 8810:367e4d405cd9
48 AVSubtitle *sub = data; 48 AVSubtitle *sub = data;
49 const uint8_t *buf_end = buf + buf_size; 49 const uint8_t *buf_end = buf + buf_size;
50 uint8_t *bitmap; 50 uint8_t *bitmap;
51 int w, h, x, y, rlelen, i; 51 int w, h, x, y, rlelen, i;
52 GetBitContext gb; 52 GetBitContext gb;
53
54 sub->format = 0;
53 55
54 // check that at least header fits 56 // check that at least header fits
55 if (buf_size < 27 + 7 * 2 + 4 * 3) { 57 if (buf_size < 27 + 7 * 2 + 4 * 3) {
56 av_log(avctx, AV_LOG_ERROR, "coded frame too small\n"); 58 av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");
57 return -1; 59 return -1;