-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2011-10-25 11:21, Burkhard Plaum wrote: > > Try this and if this doesn't work, I'll look into that. >
thanks. indeed it does work (see attached patch). however, your description was so exact, that i wonder why you didn't do it yourself in the first place :-) mfgar IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6peYQACgkQkX2Xpv6ydvQMrgCfXAe3LJaNrt+j9X1h1q5SKxCO /J0AoKx0YTKmy3GS20BPOU3Hyu0BdzB2 =0M9w -----END PGP SIGNATURE-----
Index: lib/demux_gif.c
===================================================================
--- lib/demux_gif.c (Revision 2828)
+++ lib/demux_gif.c (Arbeitskopie)
@@ -162,6 +162,7 @@
ctx->tt = bgav_track_table_create(1);
s = bgav_track_add_video_stream(ctx->tt->cur, ctx->opt);
s->fourcc = BGAV_MK_FOURCC('g','i','f',' ');
+ s->flags |= STREAM_INTRA_ONLY;
s->data.video.format.image_width = sd.width;
s->data.video.format.image_height = sd.height;
@@ -178,6 +179,8 @@
ctx->data_start = ctx->input->position;
ctx->flags |= BGAV_DEMUXER_HAS_DATA_START;
+
+ ctx->index_mode = INDEX_MODE_SIMPLE;
return 1;
}
@@ -193,7 +196,8 @@
int frame_duration;
bgav_stream_t * s;
bgav_packet_t * p;
-
+
+ int64_t ctxposition = ctx->input->position;
priv = ctx->priv;
while(!done)
@@ -264,6 +268,7 @@
s = ctx->tt->cur->video_streams;
p = bgav_stream_get_packet_write(s);
+ p->position = ctxposition;
bgav_packet_alloc(p, GLOBAL_HEADER_LEN + priv->global_cmap_bytes +
GCE_LEN + // GCE length
@@ -351,7 +356,14 @@
return 1;
}
+static void resync_gif(bgav_demuxer_context_t * ctx, bgav_stream_t * s)
+ {
+ gif_priv_t * priv;
+ priv = ctx->priv;
+ priv->video_pts = STREAM_GET_SYNC(s);
+ }
+
static void close_gif(bgav_demuxer_context_t * ctx)
{
gif_priv_t * priv;
@@ -366,5 +378,6 @@
.open = open_gif,
.select_track = select_track_gif,
.next_packet = next_packet_gif,
+ .resync = resync_gif,
.close = close_gif
};
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________ Gmerlin-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gmerlin-general
