transcode: remove h264 side data creation, it's not required
This commit is contained in:
parent
956e8a05e2
commit
06236ade10
2 changed files with 0 additions and 7 deletions
|
@ -1232,7 +1232,6 @@ parse_h264(service_t *t, elementary_stream_t *st, size_t len,
|
|||
th_pkt_t *pkt = st->es_curpkt;
|
||||
|
||||
if(pkt != NULL) {
|
||||
|
||||
if(st->es_global_data) {
|
||||
pkt->pkt_meta = pktbuf_make(st->es_global_data,
|
||||
st->es_global_data_len);
|
||||
|
|
|
@ -959,12 +959,6 @@ transcoder_stream_video(transcoder_t *t, transcoder_stream_t *ts, th_pkt_t *pkt)
|
|||
|
||||
av_init_packet(&packet);
|
||||
|
||||
if (ictx->codec_id == AV_CODEC_ID_H264 && pkt->pkt_meta) {
|
||||
uint8_t *buf = av_packet_new_side_data(&packet, AV_PKT_DATA_NEW_EXTRADATA,
|
||||
pktbuf_len(pkt->pkt_meta));
|
||||
memcpy(buf, pktbuf_ptr(pkt->pkt_meta), pktbuf_len(pkt->pkt_meta));
|
||||
}
|
||||
|
||||
packet.data = pktbuf_ptr(pkt->pkt_payload);
|
||||
packet.size = pktbuf_len(pkt->pkt_payload);
|
||||
packet.pts = pkt->pkt_pts;
|
||||
|
|
Loading…
Add table
Reference in a new issue