summaryrefslogtreecommitdiffstats
path: root/libhb/decssasub.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-27 21:09:27 +0000
committerjstebbins <[email protected]>2011-03-27 21:09:27 +0000
commite5689e626605675ab30e8a90989ea353d0543377 (patch)
tree4be6e49002126344edcdfc217f23cb1e36cc8709 /libhb/decssasub.c
parentabd251048b392e86041325c1561e7a9dcd8067c3 (diff)
Simplify a lot of subtitle handling code.
Makes it easier to read. Gets rid of some unnecessary variables. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3886 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decssasub.c')
-rw-r--r--libhb/decssasub.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libhb/decssasub.c b/libhb/decssasub.c
index b0ed845d5..ebdc6d25c 100644
--- a/libhb/decssasub.c
+++ b/libhb/decssasub.c
@@ -454,6 +454,9 @@ static hb_buffer_t *ssa_decode_line_to_picture( hb_work_object_t * w, uint8_t *i
out->y = frame->dst_y;
out->width = frame->w;
out->height = frame->h;
+ out->start = in_start;
+ out->stop = in_stop;
+ out->sequence = in_sequence;
int i;
int numPixels = frame->w * frame->h;
@@ -477,17 +480,12 @@ static hb_buffer_t *ssa_decode_line_to_picture( hb_work_object_t * w, uint8_t *i
free(rgba);
*outSubpictureListTailPtr = out;
- outSubpictureListTailPtr = &out->next_subpicture;
+ outSubpictureListTailPtr = &out->next;
}
// NOTE: The subpicture list is actually considered a single packet by most other code
hb_buffer_t *out = outSubpictureList;
- // Copy metadata from the input packet to the output packet
- out->start = in_start;
- out->stop = in_stop;
- out->sequence = in_sequence;
-
return out;
fail: