mpegtspacketizer: Remove dead code and simplify if statement

CID 1204274
This commit is contained in:
Sebastian Dröge 2014-04-22 12:56:54 +02:00
parent 60d7e45cab
commit 516597d5fa

View file

@ -2286,7 +2286,7 @@ calculate_points:
lastoffset += nextgroup->values[nextgroup->last_value].offset; lastoffset += nextgroup->values[nextgroup->last_value].offset;
lastpcr += nextgroup->values[nextgroup->last_value].pcr; lastpcr += nextgroup->values[nextgroup->last_value].pcr;
} }
} else if (prevgroup) { } else {
GST_DEBUG ("Between group"); GST_DEBUG ("Between group");
lastoffset = nextgroup->first_offset; lastoffset = nextgroup->first_offset;
lastpcr = nextgroup->pcr_offset; lastpcr = nextgroup->pcr_offset;
@ -2295,9 +2295,6 @@ calculate_points:
prevgroup->first_offset; prevgroup->first_offset;
firstpcr = firstpcr =
prevgroup->values[prevgroup->last_value].pcr + prevgroup->pcr_offset; prevgroup->values[prevgroup->last_value].pcr + prevgroup->pcr_offset;
} else {
GST_WARNING ("Not enough information to calculate offset");
return -1;
} }
GST_DEBUG ("Using prev PCR %" G_GUINT64_FORMAT " offset %" G_GUINT64_FORMAT, GST_DEBUG ("Using prev PCR %" G_GUINT64_FORMAT " offset %" G_GUINT64_FORMAT,