[FFmpeg-cvslog] r17092 - trunk/libavcodec/utils.c
superdump
subversion
Mon Feb 9 02:51:37 CET 2009
Author: superdump
Date: Mon Feb 9 02:51:36 2009
New Revision: 17092
Log:
Check that start_display_time is 0 in avcodec_encode_subtitle()
Patch by Bj?rn Axelsson ( gecko A acc D umu D se )
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Mon Feb 9 02:46:01 2009 (r17091)
+++ trunk/libavcodec/utils.c Mon Feb 9 02:51:36 2009 (r17092)
@@ -501,6 +501,10 @@ int avcodec_encode_subtitle(AVCodecConte
const AVSubtitle *sub)
{
int ret;
+ if(sub->start_display_time) {
+ av_log(avctx, AV_LOG_ERROR, "start_display_time must be 0.\n");
+ return -1;
+ }
ret = avctx->codec->encode(avctx, buf, buf_size, sub);
avctx->frame_number++;
return ret;
More information about the ffmpeg-cvslog
mailing list