1
0
Fork 0

h264: set h->sps if none is set yet

This commit is contained in:
Hendrik Leppkes 2013-05-11 23:19:59 +02:00
parent cbc6226571
commit 0b29db29d6
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 11 additions and 0 deletions

View File

@ -417,6 +417,17 @@ FF_ENABLE_DEPRECATION_WARNINGS
ret = 0;
}
}
/* activate the first SPS to determine basic stream information */
if (!h->ps.sps) {
int i;
for (i = 0; i < FF_ARRAY_ELEMS(h->ps.pps_list) && !h->ps.sps; i++) {
if (h->ps.pps_list[i]) {
ff_refstruct_replace(&h->ps.pps, h->ps.pps_list[i]);
h->ps.sps = h->ps.pps->sps;
}
}
}
}
if (h->ps.sps) {