OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4df6605
)
hevc: Return stream format information from parser
author
Mark Thompson
<sw@jkqxz.net>
Wed, 26 Oct 2016 19:27:57 +0000
(20:27 +0100)
committer
Mark Thompson
<sw@jkqxz.net>
Mon, 31 Oct 2016 19:23:40 +0000
(19:23 +0000)
libavcodec/hevc_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc_parser.c
b/libavcodec/hevc_parser.c
index
d93586b
..
508f22f
100644
(file)
--- a/
libavcodec/hevc_parser.c
+++ b/
libavcodec/hevc_parser.c
@@
-312,6
+312,14
@@
static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
ps->vps = (HEVCVPS*)ps->vps_list[ps->sps->vps_id]->data;
}
+ s->coded_width = ps->sps->width;
+ s->coded_height = ps->sps->height;
+ s->width = ps->sps->output_width;
+ s->height = ps->sps->output_height;
+ s->format = ps->sps->pix_fmt;
+ avctx->profile = ps->sps->ptl.general_ptl.profile_idc;
+ avctx->level = ps->sps->ptl.general_ptl.level_idc;
+
if (!sh->first_slice_in_pic_flag) {
int slice_address_length;