comparison matroskaenc.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 02815f232ad3
comparison
equal deleted inserted replaced
5912:10f577d87c71 5913:11bb10c37225
864 static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt) 864 static int mkv_write_packet(AVFormatContext *s, AVPacket *pkt)
865 { 865 {
866 MatroskaMuxContext *mkv = s->priv_data; 866 MatroskaMuxContext *mkv = s->priv_data;
867 ByteIOContext *pb = s->pb; 867 ByteIOContext *pb = s->pb;
868 AVCodecContext *codec = s->streams[pkt->stream_index]->codec; 868 AVCodecContext *codec = s->streams[pkt->stream_index]->codec;
869 int keyframe = !!(pkt->flags & PKT_FLAG_KEY); 869 int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY);
870 int duration = pkt->duration; 870 int duration = pkt->duration;
871 int ret; 871 int ret;
872 int64_t ts = mkv->tracks[pkt->stream_index].write_dts ? pkt->dts : pkt->pts; 872 int64_t ts = mkv->tracks[pkt->stream_index].write_dts ? pkt->dts : pkt->pts;
873 873
874 if (ts == AV_NOPTS_VALUE) { 874 if (ts == AV_NOPTS_VALUE) {