[FFmpeg-soc] [soc]: r5166 - in concat/libavformat: playlist.c playlist.h
gkovacs
subversion at mplayerhq.hu
Mon Aug 17 16:47:09 CEST 2009
Author: gkovacs
Date: Mon Aug 17 16:47:09 2009
New Revision: 5166
Log:
pass durations as const
Modified:
concat/libavformat/playlist.c
concat/libavformat/playlist.h
Modified: concat/libavformat/playlist.c
==============================================================================
--- concat/libavformat/playlist.c Mon Aug 17 16:46:01 2009 (r5165)
+++ concat/libavformat/playlist.c Mon Aug 17 16:47:09 2009 (r5166)
@@ -181,7 +181,7 @@ void ff_playlist_relative_paths(char **f
}
}
-int64_t ff_playlist_time_offset(int64_t *durations, int pe_curidx)
+int64_t ff_playlist_time_offset(const int64_t *durations, int pe_curidx)
{
int i;
int64_t total = 0;
Modified: concat/libavformat/playlist.h
==============================================================================
--- concat/libavformat/playlist.h Mon Aug 17 16:46:01 2009 (r5165)
+++ concat/libavformat/playlist.h Mon Aug 17 16:47:09 2009 (r5166)
@@ -127,7 +127,7 @@ void ff_playlist_add_path(PlaylistContex
* @param pe_curidx Index of the playlist element for which to calculate the time offset.
* @return Returns the time offset in AV_TIME_BASE units.
*/
-int64_t ff_playlist_time_offset(int64_t *durations, int pe_curidx);
+int64_t ff_playlist_time_offset(const int64_t *durations, int pe_curidx);
/** @fn int ff_playlist_stream_index_from_time(PlaylistContext *ctx, int64_t pts, int64_t *localpts)
* @brief Calculates the index of the playlist item which would contain the timestamp specified in AV_TIME_BASE units.
More information about the FFmpeg-soc
mailing list