mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libeplayer3: cleanup
Origin commit data
------------------
Branch: master
Commit: d212bcfbc5
Author: martii <m4rtii@gmx.de>
Date: 2014-04-11 (Fri, 11 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -486,15 +486,14 @@ bool Input::UpdateTracks()
|
||||
std::string l = lang ? lang->value : "";
|
||||
uint8_t *data = stream->codec->extradata;
|
||||
int size = stream->codec->extradata_size;
|
||||
if (size > 0 && 2 * size - 1 == l.length()) {
|
||||
for (unsigned i = 0; i < size; i += 2) {
|
||||
if (size > 0 && 2 * size - 1 == l.length())
|
||||
for (int i = 0; i < size; i += 2) {
|
||||
track.Name = l.substr(i * 2, 3);
|
||||
track.type = data[i] >> 3;
|
||||
track.mag = data[i] & 7;
|
||||
track.page = data[i + 1];
|
||||
player->manager.addTeletextTrack(track);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!stream->codec->codec) {
|
||||
stream->codec->codec = avcodec_find_decoder(stream->codec->codec_id);
|
||||
|
Reference in New Issue
Block a user