Commit c9e30d69 authored by michael's avatar michael

remove incorrect special case for audio


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8433 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7d895a8e
...@@ -671,17 +671,8 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st, ...@@ -671,17 +671,8 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if (pc) { if (pc) {
pkt->flags = 0; pkt->flags = 0;
/* key frame computation */ /* key frame computation */
switch(st->codec->codec_type) {
case CODEC_TYPE_VIDEO:
if (pc->pict_type == FF_I_TYPE) if (pc->pict_type == FF_I_TYPE)
pkt->flags |= PKT_FLAG_KEY; pkt->flags |= PKT_FLAG_KEY;
break;
case CODEC_TYPE_AUDIO:
pkt->flags |= PKT_FLAG_KEY;
break;
default:
break;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment