Ticket #8965: pgssubdec.patch
File pgssubdec.patch, 1.3 KB (added by , 14 years ago) |
---|
-
external/FFmpeg/libavcodec/pgssubdec.c
46 46 int x; 47 47 int y; 48 48 int id_number; 49 int blank; 49 50 } PGSSubPresentation; 50 51 51 52 typedef struct PGSSubPicture { … … 255 256 * @param buf_size size of packet to process 256 257 * @todo TODO: Implement cropping 257 258 * @todo TODO: Implement forcing of subtitles 258 * @todo TODO: Blanking of subtitle259 259 */ 260 260 static void parse_presentation_segment(AVCodecContext *avctx, 261 261 const uint8_t *buf, int buf_size) … … 308 308 /* Fill in dimensions */ 309 309 ctx->presentation.x = x; 310 310 ctx->presentation.y = y; 311 ctx->presentation.blank = 0; 311 312 } else if (block == 0x00) { 312 /* TODO: Blank context as subtitle should not be displayed. 313 * If the subtitle is blanked now the subtitle is not 314 * on screen long enough to read, due to a delay in 315 * initial display timing. 316 */ 313 ctx->presentation.blank = 1; 317 314 } 318 315 } 319 316 … … 345 342 */ 346 343 347 344 memset(sub, 0, sizeof(*sub)); 345 if (ctx->presentation.blank == 1) { 346 return 1; 347 } 348 348 sub->start_display_time = 0; 349 349 sub->end_display_time = 20000; 350 350 sub->format = 0;