change to fixed rate refresh stratigy for vicons
[goodguy/history.git] / cinelerra-5.0 / cinelerra / ffmpeg.C
index 4b585eaa531faed284d8740b781273ae28d0751e..120a75d61368ba62d63a6111879078e05e999be1 100644 (file)
@@ -746,7 +746,7 @@ int FFVideoStream::load(VFrame *vframe, int64_t pos)
                ret = read_frame(frame);
                if( ret > 0 ) ++curr_pos;
        }
-       if( ret > 0 ) {
+       if( ret >= 0 ) {
                AVCodecContext *ctx = st->codec;
                ret = convert_cmodel(vframe, (AVPicture *)frame,
                        ctx->pix_fmt, ctx->width, ctx->height);