mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Adds ffmpeg 0.8.7 bug workaround:
Single nal end seq aren't consumed and an endless loop entered.
This commit is contained in:
parent
c2938c7ef3
commit
1acdeee913
5
codec.c
5
codec.c
@ -558,6 +558,11 @@ void CodecVideoDecode(VideoDecoder * decoder, const AVPacket * avpkt)
|
||||
video_ctx->frame_number, used);
|
||||
}
|
||||
if (used != pkt->size) {
|
||||
// ffmpeg 0.8.7 dislikes our seq_end_h264 and enters endless loop here
|
||||
if (used == 0 && pkt->size == 5 && pkt->data[4] == 0x0A) {
|
||||
Warning("codec: ffmpeg 0.8.x workaround used\n");
|
||||
return;
|
||||
}
|
||||
if (used >= 0 && used < pkt->size) {
|
||||
// some tv channels, produce this
|
||||
Debug(4,
|
||||
|
Loading…
Reference in New Issue
Block a user