[FFmpeg-devel] [PATCH 7/7] ff_add_index_entry: reject AV_NOPTS_VALUE
Michael Niedermayer
michaelni at gmx.at
Thu Jul 26 03:01:11 CEST 2012
On Tue, Jul 24, 2012 at 06:15:39PM +0200, Michael Niedermayer wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavformat/utils.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index b43885e..6c7ca05 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -1569,6 +1569,9 @@ int ff_add_index_entry(AVIndexEntry **index_entries,
> if((unsigned)*nb_index_entries + 1 >= UINT_MAX / sizeof(AVIndexEntry))
> 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
> timestamp -= RELATIVE_TS_BASE;
applied
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120726/a2c1d1b4/attachment.asc>
More information about the ffmpeg-devel
mailing list