mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avformat/avienc: Dont search for startcodes in inserted empty avi frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9c9aec33c0
commit
3c020b6959
@ -576,7 +576,7 @@ static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
AVIStream *avist = s->streams[stream_index]->priv_data;
|
AVIStream *avist = s->streams[stream_index]->priv_data;
|
||||||
AVCodecContext *enc = s->streams[stream_index]->codec;
|
AVCodecContext *enc = s->streams[stream_index]->codec;
|
||||||
|
|
||||||
if (enc->codec_id == AV_CODEC_ID_H264 && enc->codec_tag == MKTAG('H','2','6','4')) {
|
if (enc->codec_id == AV_CODEC_ID_H264 && enc->codec_tag == MKTAG('H','2','6','4') && pkt->size) {
|
||||||
int ret = ff_check_h264_startcode(s, s->streams[stream_index], pkt);
|
int ret = ff_check_h264_startcode(s, s->streams[stream_index], pkt);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user