summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-03-17 14:44:22 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-03-17 14:44:22 +0000
commitbc4efe42ddad26a560d298bae3307d663dee383e (patch)
tree5ef0921c62277d0c85cacb0b65837682b3889382 /libavformat/utils.c
parent7e4baa66e0407614fe50cc1ae2b748570dcbfec9 (diff)
remove incorrect special case for audio
Originally committed as revision 8433 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index f07ed6690b..7e03b7f1d3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -671,17 +671,8 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if (pc) {
pkt->flags = 0;
/* key frame computation */
- switch(st->codec->codec_type) {
- case CODEC_TYPE_VIDEO:
if (pc->pict_type == FF_I_TYPE)
pkt->flags |= PKT_FLAG_KEY;
- break;
- case CODEC_TYPE_AUDIO:
- pkt->flags |= PKT_FLAG_KEY;
- break;
- default:
- break;
- }
}
}