OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d84d6fb
)
Check that start_display_time is 0 in avcodec_encode_subtitle()
author
Björn Axelsson
<gecko@acc.umu.se>
Mon, 9 Feb 2009 01:51:36 +0000
(
01:51
+0000)
committer
Robert Swain
<robert.swain@gmail.com>
Mon, 9 Feb 2009 01:51:36 +0000
(
01:51
+0000)
Patch by Björn Axelsson ( gecko A acc D umu D se )
Originally committed as revision 17092 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
000a6e7
..
a1383a3
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-501,6
+501,10
@@
int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size,
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;