avformat/hlsenc: refine the hlsenc code

because the oc have been  potint to hls->avf or hls->vtt_avf
here is not needed point once again

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
pull/247/head
Steven Liu 8 years ago
parent b97e9cba0b
commit 3222786c5a
  1. 5
      libavformat/hlsenc.c

@ -1317,11 +1317,6 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
}
if( st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE )
oc = hls->vtt_avf;
else
oc = hls->avf;
if ((ret = hls_window(s, 0)) < 0) {
av_free(old_filename);
return ret;

Loading…
Cancel
Save