Commit 12d1ee6a authored by Michael Niedermayer's avatar Michael Niedermayer

ff_add_index_entry: reject AV_NOPTS_VALUE

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2cd491a4
...@@ -1573,6 +1573,9 @@ int ff_add_index_entry(AVIndexEntry **index_entries, ...@@ -1573,6 +1573,9 @@ int ff_add_index_entry(AVIndexEntry **index_entries,
if((unsigned)*nb_index_entries + 1 >= UINT_MAX / sizeof(AVIndexEntry)) if((unsigned)*nb_index_entries + 1 >= UINT_MAX / sizeof(AVIndexEntry))
return -1; return -1;
if(timestamp == AV_NOPTS_VALUE)
return AVERROR(EINVAL);
if (is_relative(timestamp)) //FIXME this maintains previous behavior but we should shift by the correct offset once known if (is_relative(timestamp)) //FIXME this maintains previous behavior but we should shift by the correct offset once known
timestamp -= RELATIVE_TS_BASE; timestamp -= RELATIVE_TS_BASE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment