Mercurial > libavformat.hg
comparison mpegenc.c @ 5913:11bb10c37225 libavformat
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
Patch by Jean-Daniel Dupas, devlists shadowlab org
author | cehoyos |
---|---|
date | Wed, 31 Mar 2010 12:29:58 +0000 |
parents | 536e5527c1e0 |
children |
comparison
equal
deleted
inserted
replaced
5912:10f577d87c71 | 5913:11bb10c37225 |
---|---|
1154 AVStream *st = ctx->streams[stream_index]; | 1154 AVStream *st = ctx->streams[stream_index]; |
1155 StreamInfo *stream = st->priv_data; | 1155 StreamInfo *stream = st->priv_data; |
1156 int64_t pts, dts; | 1156 int64_t pts, dts; |
1157 PacketDesc *pkt_desc; | 1157 PacketDesc *pkt_desc; |
1158 const int preload= av_rescale(ctx->preload, 90000, AV_TIME_BASE); | 1158 const int preload= av_rescale(ctx->preload, 90000, AV_TIME_BASE); |
1159 const int is_iframe = st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (pkt->flags & PKT_FLAG_KEY); | 1159 const int is_iframe = st->codec->codec_type == AVMEDIA_TYPE_VIDEO && (pkt->flags & AV_PKT_FLAG_KEY); |
1160 | 1160 |
1161 pts= pkt->pts; | 1161 pts= pkt->pts; |
1162 dts= pkt->dts; | 1162 dts= pkt->dts; |
1163 | 1163 |
1164 if(pts != AV_NOPTS_VALUE) pts += preload; | 1164 if(pts != AV_NOPTS_VALUE) pts += preload; |