summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-07-17 04:10:38 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-07-21 03:02:24 +0200
commit3af1aba2be028246556a223386029182b1873e5a (patch)
treeacee9d643ad29cb6f6ab81a0edccdda207a18f08 /libavformat
parent3fd2ef922eab70e8b35b88f05f84b04332ee4ced (diff)
downloadffmpeg-streaming-3af1aba2be028246556a223386029182b1873e5a.zip
ffmpeg-streaming-3af1aba2be028246556a223386029182b1873e5a.tar.gz
avformat/mux: Fix some codecpar non uses
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index d674bd4..e9973ed 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -557,7 +557,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket *
av_log(s, AV_LOG_TRACE, "compute_muxer_pkt_fields: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d\n",
av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts), delay, pkt->size, pkt->stream_index);
- if (pkt->duration < 0 && st->codec->codec_type != AVMEDIA_TYPE_SUBTITLE) {
+ if (pkt->duration < 0 && st->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE) {
av_log(s, AV_LOG_WARNING, "Packet with invalid duration %"PRId64" in stream %d\n",
pkt->duration, pkt->stream_index);
pkt->duration = 0;
@@ -623,7 +623,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket *
st->priv_pts->val = pkt->dts;
/* update pts */
- switch (st->codec->codec_type) {
+ switch (st->codecpar->codec_type) {
case AVMEDIA_TYPE_AUDIO:
frame_size = (pkt->flags & AV_PKT_FLAG_UNCODED_FRAME) ?
((AVFrame *)pkt->data)->nb_samples :
OpenPOWER on IntegriCloud