summaryrefslogtreecommitdiffstats
path: root/libhb/fifo.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-01-26 18:01:50 +0000
committerjstebbins <[email protected]>2014-01-26 18:01:50 +0000
commit96fbc744385ddcc15617ba449d1521c30f66da3d (patch)
tree00a351c416a2307e511042d0a86bf4d3a2bfe7d1 /libhb/fifo.c
parent1d7db22df59be148ed995eee7755f21d8f0b9d5b (diff)
Replace invaled timestamp flag "-1" with AV_NOPTS
-1 is not a good value as a flag for invalid timestamps. There are cases where small negative timestamps are useful. So this eliminates a potential ambiguity. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6001 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/fifo.c')
-rw-r--r--libhb/fifo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/fifo.c b/libhb/fifo.c
index a782ebb25..fe1ea5ea6 100644
--- a/libhb/fifo.c
+++ b/libhb/fifo.c
@@ -341,9 +341,9 @@ hb_buffer_t * hb_buffer_init_internal( int size , int needsMapped )
b->alloc = buffer_pool->buffer_size;
b->size = size;
b->data = data;
- b->s.start = -1;
- b->s.stop = -1;
- b->s.renderOffset = -1;
+ b->s.start = AV_NOPTS_VALUE;
+ b->s.stop = AV_NOPTS_VALUE;
+ b->s.renderOffset = AV_NOPTS_VALUE;
/* OpenCL */
b->cl.buffer = buffer;
@@ -407,9 +407,9 @@ hb_buffer_t * hb_buffer_init_internal( int size , int needsMapped )
buffers.allocated += b->alloc;
hb_unlock(buffers.lock);
}
- b->s.start = -1;
- b->s.stop = -1;
- b->s.renderOffset = -1;
+ b->s.start = AV_NOPTS_VALUE;
+ b->s.stop = AV_NOPTS_VALUE;
+ b->s.renderOffset = AV_NOPTS_VALUE;
return b;
}