Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
transcode: remove h264 side data creation, it's not required
  • Loading branch information
perexg committed Oct 20, 2014
1 parent 956e8a0 commit 06236ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/parsers/parsers.c
Expand Up @@ -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);
Expand Down
6 changes: 0 additions & 6 deletions src/plumbing/transcoding.c
Expand Up @@ -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;
Expand Down

0 comments on commit 06236ad

Please sign in to comment.