# HG changeset patch # User diego # Date 1234402076 0 # Node ID 367e4d405cd9ca7f8e664dfc23d7e4bbfe86dcba # Parent 425f99bb62dff2e4177e5302e12958a384ac8c5a 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 diff -r 425f99bb62df -r 367e4d405cd9 dvdsubdec.c --- a/dvdsubdec.c Thu Feb 12 01:07:13 2009 +0000 +++ b/dvdsubdec.c Thu Feb 12 01:27:56 2009 +0000 @@ -175,6 +175,7 @@ return -1; sub_header->rects = NULL; sub_header->num_rects = 0; + sub_header->format = 0; sub_header->start_display_time = 0; sub_header->end_display_time = 0; diff -r 425f99bb62df -r 367e4d405cd9 xsubdec.c --- a/xsubdec.c Thu Feb 12 01:07:13 2009 +0000 +++ b/xsubdec.c Thu Feb 12 01:27:56 2009 +0000 @@ -51,6 +51,8 @@ int w, h, x, y, rlelen, i; GetBitContext gb; + sub->format = 0; + // check that at least header fits if (buf_size < 27 + 7 * 2 + 4 * 3) { av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");