mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-12-27 07:21:07 +01:00
fixed interlaced playback
This commit is contained in:
8
codec.c
8
codec.c
@@ -537,8 +537,14 @@ next_part:
|
||||
*/
|
||||
void CodecVideoFlushBuffers(VideoDecoder * decoder)
|
||||
{
|
||||
AVFrame *frame;
|
||||
frame = decoder->Frame;
|
||||
|
||||
if (decoder->VideoCtx) {
|
||||
avcodec_flush_buffers(decoder->VideoCtx);
|
||||
while (avcodec_receive_frame(decoder->VideoCtx,frame) >= 0) {
|
||||
usleep(1);
|
||||
}
|
||||
// avcodec_flush_buffers(decoder->VideoCtx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user