You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit '7693ba0a0eecdcdba71b7fbd9a4a12d1ba7b82aa'
* commit '7693ba0a0eecdcdba71b7fbd9a4a12d1ba7b82aa': hevc: export stream parameters from extradata Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -3375,7 +3375,7 @@ static int hevc_decode_extradata(HEVCContext *s)
|
|||||||
{
|
{
|
||||||
AVCodecContext *avctx = s->avctx;
|
AVCodecContext *avctx = s->avctx;
|
||||||
GetByteContext gb;
|
GetByteContext gb;
|
||||||
int ret;
|
int ret, i;
|
||||||
|
|
||||||
bytestream2_init(&gb, avctx->extradata, avctx->extradata_size);
|
bytestream2_init(&gb, avctx->extradata, avctx->extradata_size);
|
||||||
|
|
||||||
@@ -3432,6 +3432,16 @@ static int hevc_decode_extradata(HEVCContext *s)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* export stream parameters from the first SPS */
|
||||||
|
for (i = 0; i < FF_ARRAY_ELEMS(s->sps_list); i++) {
|
||||||
|
if (s->sps_list[i]) {
|
||||||
|
const HEVCSPS *sps = (const HEVCSPS*)s->sps_list[i]->data;
|
||||||
|
export_stream_params(s->avctx, s, sps);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user