Displaying 1 result from an estimated 1 matches for "first_timestamp".
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
.../swfdec_flv_decoder.c
index da311d4..530915d 100644
--- a/libswfdec/swfdec_flv_decoder.c
+++ b/libswfdec/swfdec_flv_decoder.c
@@ -424,6 +424,29 @@ swfdec_flv_decoder_get_video (SwfdecFlvD
return tag->buffer;
}
+gboolean
+swfdec_flv_decoder_get_video_info (SwfdecFlvDecoder *flv,
+ guint *first_timestamp, guint *last_timestamp)
+{
+ g_return_val_if_fail (SWFDEC_IS_FLV_DECODER (flv), FALSE);
+
+ if (flv->video == NULL)
+ return FALSE;
+
+ if (flv->video->len == 0) {
+ if (first_timestamp)
+ *first_timestamp = 0;
+ if (last_timestamp)
+ *last_timestamp = 0;
+ return...