search for: last_frame

Displaying 20 results from an estimated 24 matches for "last_frame".

2004 Sep 10
2
better seeking
...pper_bound; - FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample; + FLAC__int64 pos, last_pos = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = 0xffffffffffffffff; + FLAC__uint64 last_frame_sample = 0xffffffffffffffff, this_frame_sample; FLAC__bool needs_seek; const FLAC__uint64 total_samples = decoder->private_->stream_info.total_samples; const unsigned min_blocksize = decoder->private_->stream_info.min_blocksiz...
2006 Oct 28
3
better seeking
...+ FLAC__uint64 first_frame_offset = decoder->private_->first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample; FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff); + FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff), this_frame_sample; FLAC__bool needs_seek; const FLAC__uint64 total_samples = FLAC__stream_decoder_get_total_samples(decoder); const unsigned min_blocksize = decoder->private_->str...
2005 Jan 25
0
bitbuffer optimizations
...pper_bound; - FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample; + FLAC__int64 pos, last_pos = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff); + FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff), this_frame_sample; FLAC__bool needs_seek; const FLAC__uint64 total_samples = decoder->private_->stream_info.total_samples; const unsigned min_blocksize = decoder->private_->...
2006 Nov 03
2
better seeking
...t i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset = decoder->private_->first_frame_offset, lower_bound, upper_bound, lower_bound_sample, upper_bound_sample, this_frame_sample; + FLAC__int64 pos = -1; + int i; unsigned approx_bytes_per_frame; - FLAC__uint64 last_frame_sample = FLAC__U64L(0xffffffffffffffff); - FLAC__bool needs_seek; + FLAC__bool needs_seek = true, first_seek = true; const FLAC__uint64 total_samples = FLAC__stream_decoder_get_total_samples(decoder); const unsigned min_blocksize = decoder->private_->stream_info.data.stream_info.min_block...
2007 Jul 25
0
2 commits - libswfdec/swfdec_as_context.c
...operly unwind frames on error (fixes #11692) diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 227444e..2dab0be 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -809,7 +809,8 @@ start: } error: - context->frame = context->last_frame; + while (context->frame != context->last_frame) + swfdec_as_frame_return (context->frame, NULL); out: context->last_frame = last_frame; return;
2004 Sep 10
4
bitbuffer optimizations
Ok, here is a patch waiting for new CVS :). It works fine for me, but please check it before commiting... -- Miroslav Lichvar -------------- next part -------------- --- src/libFLAC/bitbuffer.c.orig 2003-01-30 17:36:01.000000000 +0100 +++ src/libFLAC/bitbuffer.c 2003-01-30 21:53:18.000000000 +0100 @@ -51,6 +51,25 @@ */ static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = ((65536 - 64) *
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...cAsContext * guint action, len; guint8 *data; int version; + guint original_version; void (* step) (SwfdecAsDebugger *debugger, SwfdecAsContext *context); gboolean check_scope; /* some opcodes avoid a scope check */ @@ -727,6 +728,7 @@ swfdec_as_context_run (SwfdecAsContext * last_frame = context->last_frame; context->last_frame = context->frame->next; + original_version = context->version; start: /* setup data */ frame = context->frame; @@ -899,6 +901,7 @@ error: swfdec_as_frame_return (context->frame, NULL); out: context->last_frame =...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
http://bugs.freedesktop.org/show_bug.cgi?id=16206 Summary: Charts in Yahoo Finance crash swfdec Product: swfdec Version: git Platform: Other URL: http://finance.yahoo.com/echarts?s=%5EDJI#symbol=%5EDJI; range=1d OS/Version: All Status: NEW Severity: critical Priority: medium
2007 Apr 12
0
Branch 'as' - 14 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...unction.h" #include "swfdec_as_interpret.h" #include "swfdec_as_object.h" #include "swfdec_as_stack.h" @@ -353,7 +354,7 @@ swfdec_as_context_new (void) void swfdec_as_context_run (SwfdecAsContext *context) { - SwfdecAsFrame *frame; + SwfdecAsFrame *frame, *last_frame; SwfdecAsStack *stack; SwfdecScript *script; const SwfdecActionSpec *spec; @@ -368,15 +369,26 @@ swfdec_as_context_run (SwfdecAsContext * void (* step) (SwfdecAsContext *context); g_return_if_fail (SWFDEC_IS_AS_CONTEXT (context)); + if (context->frame == NULL) + return;...
2007 Oct 22
0
6 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h
...dd framework for doing runtime checks diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index dd276fc..07eb2fd 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -732,6 +732,8 @@ swfdec_as_context_run (SwfdecAsContext *context) context->last_frame = context->frame->next; original_version = context->version; start: + if (!swfdec_as_context_check_continue (context)) + goto error; /* setup data */ frame = context->frame; if (frame == context->last_frame) @@ -892,6 +894,10 @@ start: frame->pc = pc = next...
2008 Apr 12
2
[Bug 15471] New: segmentation fault while seeking in youtube.com
...0) at swfdec_as_context.c:887 argv = (SwfdecAsValue *) 0xc8973c8 native = (SwfdecAsNativeFunction *) 0xab80228 rval = {type = SWFDEC_AS_TYPE_UNDEFINED, value = {boolean = 0, number = 0, string = 0x0, object = 0x0}} frame = (SwfdecAsFrame *) 0xdce4670 last_frame = (SwfdecAsFrame *) 0x0 spec = (const SwfdecActionSpec *) 0xb230bd30 startpc = (const guint8 *) 0xb15cd08 "CWS\a?\206\001" pc = <value optimized out> endpc = (const guint8 *) 0xb1753de " ---Type <return> to continue, or q <return> to...
2008 Nov 03
0
No subject
...n until we reach the target frame, we are now decoding each frame/packet. At the target frame produce the YUV output. Steps 4 and 5 are necessary because ogg only tells you where a frame ends, not where it starts. My code has two further optimisations: - if playing sequentially (current_frame - last_frame < threshold), you don't need to seek again (from trial and error I found threshold is best if it is around 1/4 of the keyframe_granule_shift). Just continue decoding. - I create a hash table of largest granule pos -> keyframe as this is discovered. Doing a binary tree search of this firs...
2008 Nov 03
0
No subject
...the target frame produce the YUV<br> output.<br><br>Steps 4 and 5 are necessary because ogg only tells you where= a frame ends, not where it starts.<br><br><br><br>My code has two further = optimisations:<br>- if playing sequentially (current_frame - last_frame &lt= ; threshold), you don&#39;t need to seek again (from trial and error I foun= d threshold is best if it is around 1/4 of the keyframe_granule_shift). Jus= t continue decoding.<br> <br>- I create a hash table of largest granule pos -&gt; keyframe as this i= s discovered....
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
..._AS_CONTEXT_ABORTED) return; - klass = SWFDEC_AS_CONTEXT_GET_CLASS (context); - step = klass->step; + if (context->debugger) { + SwfdecAsDebuggerClass *klass = SWFDEC_AS_DEBUGGER_GET_CLASS (context->debugger); + step = klass->step; + } else { + step = NULL; + } last_frame = context->last_frame; context->last_frame = context->frame->next; @@ -737,7 +787,7 @@ start: /* invoke debugger if there is one */ if (step) { frame->pc = pc; - (* step) (context); + (* step) (context->debugger, context); if (frame != context-...
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
....0f062c8 100644 --- a/libswfdec/swfdec_as_context.h +++ b/libswfdec/swfdec_as_context.h @@ -63,6 +63,8 @@ struct _SwfdecAsContext { unsigned int call_depth; /* current depth of call stack (equals length of frame list) */ SwfdecAsFrame * frame; /* topmost stack frame */ SwfdecAsFrame * last_frame; /* last frame before calling context_run */ + gboolean throwing; /* whether we are throwing an error */ + SwfdecAsValue throw_value; /* the error object being thrown */ /* stack */ SwfdecAsValue * base; /* stack base */ diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfde...
2007 Dec 02
2
[Bug 13491] New: 5min.com player causes assertion
...4dc3f10 native = (SwfdecAsNativeFunction *) 0x34b8820 rval = {type = SWFDEC_AS_TYPE_STRING, value = {boolean = -1346003103, number = 2.3177895010821281e-310, string = 0x2aaaafc59f61 "", object = 0x2aaaafc59f61}} frame = (SwfdecAsFrame *) 0x36a5d80 last_frame = (SwfdecAsFrame *) 0x0 spec = <value optimized out> startpc = (const guint8 *) 0x2aaab0367de0 "CWS\b\004\023\b" pc = (const guint8 *) 0x4dc3f10 "" endpc = (const guint8 *) 0x2aaab03e90e4 "" nextpc = (const guint8 *) 0x2aaa...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...eeking; FLAC__MD5Context md5context; - FLAC__byte computed_md5sum[16]; /* this is the sum we computed from the decoded data */ + FLAC__byte computed_md5sum[EVP_MAX_MD_SIZE]; /* this is the sum we computed from the decoded data */ /* (the rest of these are only used for seeking) */ FLAC__Frame last_frame; /* holds the info of the last frame we seeked to */ FLAC__uint64 first_frame_offset; /* hint to the seek routine of where in the stream the first audio frame starts */ @@ -322,7 +322,9 @@ FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void) decoder->private_->file = 0; set_de...
2007 Oct 26
0
8 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c test/trace
....df09fa2 100644 --- a/libswfdec/swfdec_as_context.h +++ b/libswfdec/swfdec_as_context.h @@ -63,8 +63,8 @@ struct _SwfdecAsContext { unsigned int call_depth; /* current depth of call stack (equals length of frame list) */ SwfdecAsFrame * frame; /* topmost stack frame */ SwfdecAsFrame * last_frame; /* last frame before calling context_run */ - gboolean throwing; /* whether we are throwing an error */ - SwfdecAsValue throw_value; /* the error object being thrown */ + gboolean exception; /* whether we are throwing an exception */ + SwfdecAsValue exception_value; /* value of the exce...
2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...nclude "swfdec_as_interpret.h" +#include "swfdec_as_native_function.h" #include "swfdec_as_number.h" #include "swfdec_as_object.h" #include "swfdec_as_stack.h" @@ -389,10 +390,11 @@ start: frame = context->frame; if (frame == context->last_frame) goto out; - if (frame->function && frame->function->native) { - if (frame->argc >= frame->function->min_args && - g_type_is_a (G_OBJECT_TYPE (frame->thisp), frame->function->type)) { - frame->function->native (frame->thisp, fram...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...urrent version doesn't know it diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 96c23e4..b2a74cb 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -682,6 +682,7 @@ swfdec_as_context_run (SwfdecAsContext * SwfdecAsFrame *frame, *last_frame; SwfdecScript *script; const SwfdecActionSpec *spec; + SwfdecActionExec exec; guint8 *startpc, *pc, *endpc, *nextpc; #ifndef G_DISABLE_ASSERT SwfdecAsValue *check; @@ -813,12 +814,22 @@ start: nextpc = pc + 1; } /* check action is valid */ - if (spec->exec[versi...