Fix #29321: Video does not display, gets frozen or flickers
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Nov 2011 20:55:06 +0000 (20:55 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 18 Nov 2011 20:55:06 +0000 (20:55 +0000)
Unfortunately, error was caused by own attempt to deal with some kind of broken
videos when was investigating crashes in sequencer. Issue discovered that time
was related on values stored in timecode index and using them as signed data type
later.

Trying to use unsigned value here leads to signed/unsigned check failures.

Prefer just to pre-process that kind of videos i've been trying to deal with
rather than making more global changes during BCON3.

source/blender/imbuf/intern/anim_movie.c

index 3c32332cd8d28417920a3a50f80c435b6494f969..db27c1cee6363d561667f1f1912bf9973d597d0f 100644 (file)
@@ -895,7 +895,7 @@ static int ffmpeg_seek_by_byte(AVFormatContext *pFormatCtx)
 
 static ImBuf * ffmpeg_fetchibuf(struct anim * anim, int position,
                                IMB_Timecode_Type tc) {
-       unsigned long long pts_to_search = 0;
+       int64_t pts_to_search = 0;
        double frame_rate;
        double pts_time_base;
        long long st_time;