PiRSquared17 / ffinputdriver

Automatically exported from code.google.com/p/ffinputdriver
GNU General Public License v2.0
0 stars 0 forks source link

Interlaced video crash #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. loading a m2ts interlaced video.
2. playing the video
3. will crash both on the 32 or 64 bits

What version of the product are you using? On what operating system?
build 32842 (release-AMD64) see video detail below and Virtualdub crash file

Please provide any additional information below.
General
ID                               : 0 (0x0)
Complete name                    : S:\Memories\Camcorder\HD\2012\12\2012-12-05 
Wed 19h54.m2ts
Format                           : BDAV
Format/Info                      : Blu-ray Video
File size                        : 11.8 MiB
Duration                         : 6s 120ms
Overall bit rate                 : 16.0 Mbps
Maximum Overall bit rate         : 18.0 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Codec ID                         : 27
Duration                         : 5s 939ms
Bit rate mode                    : Variable
Bit rate                         : 15.1 Mbps
Maximum bit rate                 : 16.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Interlaced
Scan order                       : Top Field First
Bits/(Pixel*Frame)               : 0.243
Stream size                      : 10.7 MiB (90%)

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : 129
Duration                         : 6s 16ms
Bit rate mode                    : Constant
Bit rate                         : 256 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Compression mode                 : Lossy
Delay relative to video          : -67ms
Stream size                      : 188 KiB (2%)

VirtualDub crash report -- build 32842 (release-AMD64)
--------------------------------------

Disassembly:
7fef80867c0: 4983e802        sub    rax, 02h
7fef80867c4: 668901          mov    [rcx], eax
7fef80867c7: 4883c102        add    rcx, 02h
7fef80867cb: f6c104          test   cl, 04h
7fef80867ce: 740d            jz     f80867dd
7fef80867d0: 8b040a          mov    eax, [rdx+rcx]
7fef80867d3: 4983e804        sub    rax, 04h
7fef80867d7: 8901            mov    [rcx], eax
7fef80867d9: 4883c104        add    rcx, 04h
7fef80867dd: 4d8bc8          mov    r9, eax
7fef80867e0: 49c1e905        shr    rcx, 05h
7fef80867e4: 7551            jnz    f8086837
7fef80867e6: 4d8bc8          mov    r9, eax
7fef80867e9: 49c1e903        shr    rcx, 03h
7fef80867ed: 7414            jz     f8086803
7fef80867ef: 488b040a        mov    rax, [rdx+rcx]
7fef80867f3: 488901          mov    [rcx], rax
7fef80867f6: 4883c108        add    rcx, 08h
7fef80867fa: 49ffc9          dec    rcx
7fef80867fd: 75f0            jnz    f80867ef
7fef80867ff: 4983e007        and    rax, 07h
7fef8086803: 4d85c0          test   eax, r8
7fef8086806: 7508            jnz    f8086810
7fef8086808: 498bc3          mov    rax, ebx
7fef808680b: c3              ret    
7fef808680c: 0f              db     0fh
7fef808680d: 1f              db     1fh
7fef808680e: 40008a040a8801  add    [rdx+1880a04], cl
7fef8086815: 48ffc1          inc    rcx
7fef8086818: 49ffc8          dec    rax
7fef808681b: 75f3            jnz    f8086810
7fef808681d: 498bc3          mov    rax, ebx
7fef8086820: c3              ret    
7fef8086821: 66666666666666  db     0fh
          0f              
7fef8086829: 1f              db     1fh
7fef808682a: 8400            test   [rax], al
7fef808682c: 0000            add    [rax], al
7fef808682e: 0000            add    [rax], al
7fef8086830: 66666690        nop    
7fef8086834: 666690          nop    
7fef8086837: 4981f900200000  cmp    ecx, 00002000
7fef808683e: 7342            jnc    f8086882
7fef8086840: 488b040a        mov    rax, [rdx+rcx]
7fef8086844: 4c8b540a08      mov    r10, [rdx+rcx+08h]
7fef8086849: 4883c120        add    rcx, 20h
7fef808684d: 488941e0        mov    [rcx-20h], rax
7fef8086851: 4c8951e8        mov    [rcx-18h], r10
7fef8086855: 488b440af0      mov    rax, [rdx+rcx-10h]
7fef808685a: 4c8b540af8      mov    r10, [rdx+rcx-08h]      <-- FAULT
7fef808685f: 49ffc9          dec    rcx
7fef8086862: 488941f0        mov    [rcx-10h], rax
7fef8086866: 4c8951f8        mov    [rcx-08h], r10
7fef808686a: 75d4            jnz    f8086840
7fef808686c: 4983e01f        and    rax, 1fh
7fef8086870: e971ffffff      jmp    f80867e6
7fef8086875: 6666660f        db     0fh
7fef8086879: 1f              db     1fh
7fef808687a: 8400            test   [rax], al
7fef808687c: 0000            add    [rax], al
7fef808687e: 0000            add    [rax], al
7fef8086880: 6690            nop    
7fef8086882: 4881fa00100000  cmp    edx, 00001000
7fef8086889: 72b5            jc     f8086840
7fef808688b: b820000000      mov    eax, 00000020
7fef8086890: 0f              db     0fh
7fef8086891: 18040a          sbb    [rdx+rcx], al
7fef8086894: 0f              db     0fh
7fef8086895: 18440a40        sbb    [rdx+rcx+40h], al
7fef8086899: 4881c180000000  add    ecx, 00000080
7fef80868a0: ffc8            dec    eax
7fef80868a2: 75ec            jnz    f8086890
7fef80868a4: 4881e900100000  sub    ecx, 00001000
7fef80868ab: b840000000      mov    eax, 00000040
7fef80868b0: 4c8b0c0a        mov    r9, [rdx+rcx]
7fef80868b4: 4c8b540a08      mov    r10, [rdx+rcx+08h]
7fef80868b9: 4c0fc309        movnti [rcx], ecx
7fef80868bd: 4c0f            db     0fh
7fef80868bf: c3              ret    

Built on Aegis on Fri Dec 24 13:19:54 2010 using compiler version 1400

Windows 6.1 (Windows Vista x64 build 7601) [Service Pack 1]

RAX =            6a000
RBX =              c84
RCX =          229f068
RDX =           6f6fa0
RSI =          227e5e0
RDI =          28f1750
RBP =            34f41
R8  =              c80
R9  =               2a
R10 =          2996000
R11 =          229e904
R12 =          29958a4
R13 =                0
R14 =                4
R15 =        140254c48
RSP =          b2cf778
RIP =      7fef808685a
EFLAGS = 00010202

Crash reason: Access Violation

Crash context:
An out-of-bounds memory access (access violation) occurred in module 
'Veedub64'...

...reading address 0000000002996000...

...while reading 801 raw audio samples starting at 216897 (stream 
length=287232) (Audio.cpp:656)...

...while running thread "Dub-I/O" (thread.cpp:163).

Pointer dumps:

RCX   0229f068: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00000000
RSI   0227e5e0: 4027a4f0 00000001 00000002 00000000 0227be80 00000000 00000014 
0063006d
RDI   028f1750: f8097310 000007fe 00000002 00000000 f8097380 000007fe f80973a0 
000007fe
RSP   0b2cf778: f8083e2d 000007fe 00001800 00000000 028f1750 00000000 0229db00 
00000000
      0b2cf798: 00000004 00000000 e2556b28 404df853 00000000 00000000 40254c48 00000001
      0b2cf7b8: 4027a1b0 00000001 00000000 00000000 0238cb90 00000000 00034f41 00000000
      0b2cf7d8: 0229e904 00000000 00000321 00000000 401198ad 00000001 0227e5e0 00000000
R11   0229e900: 04c60370 00000000 00000400 00000001 00000001 00000000 00000000 
00000000
R12   029958a0: 04c60370 00000000 00000400 00000001 00000001 00000000 00000000 
00000000
R15   140254c48: 40002760 00000001 40226a80 00000001 40226a80 00000001 40226a80 
00000001

Thread call stack:
7fef808685a: FFInputDriver_64!VDGetPluginInfo [7fef8080000+5d30+b2a]
7fef8083e2d: FFInputDriver_64!00003e2d
1401198ad: VDAudioSourcePlugin::_read()
668295cc: avcodec-53!aver_isf_history [65ec0000+8ecf6e+7c65e]
14000c958: AudioStreamSource::_Read()
7749413d: ntdll!RtlAllocateHeap [77440000+533a0+d9d]
14000a30a: AudioStream::Read()
14000dbfc: AudioSubset::_Read()
6d7aad6d: snxhk64!0000ad6d
7fef80825bf: FFInputDriver_64!000025bf
140117e66: VDVideoSourcePlugin::_read()
7fef8082811: FFInputDriver_64!00002811
7fefdb61430: KERNELBASE!GetCurrentProcess [7fefdb60000+13f0+40]
7fef808277c: FFInputDriver_64!0000277c
140119057: VDVideoSourcePlugin::getDropType()
140026473: VDDubIOThread::ReadRawVideoFrame()
76fd1220: KERNEL32!WaitForMultipleObjects [76fc0000+11170+b0]
14000a30a: AudioStream::Read()
140026c4a: VDDubIOThread::MainAddAudioFrame()
1401642f4: VDSignalBase::waitMultiple()
14002701a: VDDubIOThread::ThreadRun()
1401644ea: VDThread::StaticThreadStart()
14022e7af: threadstartex()
76fd652d: KERNEL32!BaseThreadInitThunk [76fc0000+16520+d]
7746c521: ntdll!RtlUserThreadStart [77440000+2c500+21]

-- End of report

Original issue reported on code.google.com by ja...@krieger.ws on 7 Dec 2012 at 11:35

GoogleCodeExporter commented 9 years ago
example file (smaller version)
---
VirtualDub crash report -- build 32842 (release-AMD64)
--------------------------------------

Disassembly:
7fef80b67c0: 4983e802        sub    rax, 02h
7fef80b67c4: 668901          mov    [rcx], eax
7fef80b67c7: 4883c102        add    rcx, 02h
7fef80b67cb: f6c104          test   cl, 04h
7fef80b67ce: 740d            jz     f80b67dd
7fef80b67d0: 8b040a          mov    eax, [rdx+rcx]
7fef80b67d3: 4983e804        sub    rax, 04h
7fef80b67d7: 8901            mov    [rcx], eax
7fef80b67d9: 4883c104        add    rcx, 04h
7fef80b67dd: 4d8bc8          mov    r9, eax
7fef80b67e0: 49c1e905        shr    rcx, 05h
7fef80b67e4: 7551            jnz    f80b6837
7fef80b67e6: 4d8bc8          mov    r9, eax
7fef80b67e9: 49c1e903        shr    rcx, 03h
7fef80b67ed: 7414            jz     f80b6803
7fef80b67ef: 488b040a        mov    rax, [rdx+rcx]
7fef80b67f3: 488901          mov    [rcx], rax
7fef80b67f6: 4883c108        add    rcx, 08h
7fef80b67fa: 49ffc9          dec    rcx
7fef80b67fd: 75f0            jnz    f80b67ef
7fef80b67ff: 4983e007        and    rax, 07h
7fef80b6803: 4d85c0          test   eax, r8
7fef80b6806: 7508            jnz    f80b6810
7fef80b6808: 498bc3          mov    rax, ebx
7fef80b680b: c3              ret    
7fef80b680c: 0f              db     0fh
7fef80b680d: 1f              db     1fh
7fef80b680e: 40008a040a8801  add    [rdx+1880a04], cl
7fef80b6815: 48ffc1          inc    rcx
7fef80b6818: 49ffc8          dec    rax
7fef80b681b: 75f3            jnz    f80b6810
7fef80b681d: 498bc3          mov    rax, ebx
7fef80b6820: c3              ret    
7fef80b6821: 66666666666666  db     0fh
          0f              
7fef80b6829: 1f              db     1fh
7fef80b682a: 8400            test   [rax], al
7fef80b682c: 0000            add    [rax], al
7fef80b682e: 0000            add    [rax], al
7fef80b6830: 66666690        nop    
7fef80b6834: 666690          nop    
7fef80b6837: 4981f900200000  cmp    ecx, 00002000
7fef80b683e: 7342            jnc    f80b6882
7fef80b6840: 488b040a        mov    rax, [rdx+rcx]
7fef80b6844: 4c8b540a08      mov    r10, [rdx+rcx+08h]
7fef80b6849: 4883c120        add    rcx, 20h
7fef80b684d: 488941e0        mov    [rcx-20h], rax
7fef80b6851: 4c8951e8        mov    [rcx-18h], r10
7fef80b6855: 488b440af0      mov    rax, [rdx+rcx-10h]
7fef80b685a: 4c8b540af8      mov    r10, [rdx+rcx-08h]      <-- FAULT
7fef80b685f: 49ffc9          dec    rcx
7fef80b6862: 488941f0        mov    [rcx-10h], rax
7fef80b6866: 4c8951f8        mov    [rcx-08h], r10
7fef80b686a: 75d4            jnz    f80b6840
7fef80b686c: 4983e01f        and    rax, 1fh
7fef80b6870: e971ffffff      jmp    f80b67e6
7fef80b6875: 6666660f        db     0fh
7fef80b6879: 1f              db     1fh
7fef80b687a: 8400            test   [rax], al
7fef80b687c: 0000            add    [rax], al
7fef80b687e: 0000            add    [rax], al
7fef80b6880: 6690            nop    
7fef80b6882: 4881fa00100000  cmp    edx, 00001000
7fef80b6889: 72b5            jc     f80b6840
7fef80b688b: b820000000      mov    eax, 00000020
7fef80b6890: 0f              db     0fh
7fef80b6891: 18040a          sbb    [rdx+rcx], al
7fef80b6894: 0f              db     0fh
7fef80b6895: 18440a40        sbb    [rdx+rcx+40h], al
7fef80b6899: 4881c180000000  add    ecx, 00000080
7fef80b68a0: ffc8            dec    eax
7fef80b68a2: 75ec            jnz    f80b6890
7fef80b68a4: 4881e900100000  sub    ecx, 00001000
7fef80b68ab: b840000000      mov    eax, 00000040
7fef80b68b0: 4c8b0c0a        mov    r9, [rdx+rcx]
7fef80b68b4: 4c8b540a08      mov    r10, [rdx+rcx+08h]
7fef80b68b9: 4c0fc309        movnti [rcx], ecx
7fef80b68bd: 4c0f            db     0fh
7fef80b68bf: c3              ret    

Built on Aegis on Fri Dec 24 13:19:54 2010 using compiler version 1400

Windows 6.1 (Windows Vista x64 build 7601) [Service Pack 1]

RAX =            6a000
RBX =              c84
RCX =          239ea28
RDX =           4b75e0
RSI =          237e5e0
RDI =          28f1750
RBP =            34f41
R8  =              c80
R9  =               2a
R10 =          2856000
R11 =          239e2c4
R12 =          28558a4
R13 =                0
R14 =                4
R15 =        140254c48
RSP =          b33f778
RIP =      7fef80b685a
EFLAGS = 00010206

Crash reason: Access Violation

Crash context:
An out-of-bounds memory access (access violation) occurred in module 
'Veedub64'...

...reading address 0000000002856000...

...while reading 801 raw audio samples starting at 216897 (stream 
length=239616) (Audio.cpp:656)...

...while running thread "Dub-I/O" (thread.cpp:163).

Pointer dumps:

RCX   0239ea28: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00000000
RDX   004b75e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00000000
RSI   0237e5e0: 4027a4f0 00000001 00000002 00000000 0237ce60 00000000 00000014 
00000000
RDI   028f1750: f80c7310 000007fe 00000002 00000000 f80c7380 000007fe f80c73a0 
000007fe
RSP   0b33f778: f80b3e2d 000007fe 00001800 00000000 028f1750 00000000 0239d4c0 
00000000
      0b33f798: 00000004 00000000 e2556b28 404df853 00000000 00000000 40254c48 00000001
      0b33f7b8: 4027a1b0 00000001 00000000 00000000 001ccb90 00000000 00034f41 00000000
      0b33f7d8: 0239e2c4 00000000 00000321 00000000 401198ad 00000001 0237e5e0 00000000
R11   0239e2c0: 045c54c0 00000000 00000400 00000001 00000001 00000000 00000000 
00000000
R12   028558a0: 045c54c0 00000000 00000400 00000001 00000001 00000000 00000000 
00000000
R15   140254c48: 40002760 00000001 40226a80 00000001 40226a80 00000001 40226a80 
00000001

Thread call stack:
7fef80b685a: FFInputDriver_64!VDGetPluginInfo [7fef80b0000+5d30+b2a]
7fef80b3e2d: FFInputDriver_64!00003e2d
1401198ad: VDAudioSourcePlugin::_read()
668295cc: avcodec-53!aver_isf_history [65ec0000+8ecf6e+7c65e]
14000c958: AudioStreamSource::_Read()
7749413d: ntdll!RtlAllocateHeap [77440000+533a0+d9d]
14000a30a: AudioStream::Read()
14000dbfc: AudioSubset::_Read()
6d7aad6d: snxhk64!0000ad6d
7fef80b25bf: FFInputDriver_64!000025bf
140117e66: VDVideoSourcePlugin::_read()
7fef80b2811: FFInputDriver_64!00002811
7fefdb61430: KERNELBASE!GetCurrentProcess [7fefdb60000+13f0+40]
7fef80b277c: FFInputDriver_64!0000277c
140119057: VDVideoSourcePlugin::getDropType()
140026473: VDDubIOThread::ReadRawVideoFrame()
76fd1220: KERNEL32!WaitForMultipleObjects [76fc0000+11170+b0]
14000a30a: AudioStream::Read()
140026c4a: VDDubIOThread::MainAddAudioFrame()
1401642f4: VDSignalBase::waitMultiple()
14002701a: VDDubIOThread::ThreadRun()
1401644ea: VDThread::StaticThreadStart()
14022e7af: threadstartex()
76fd652d: KERNEL32!BaseThreadInitThunk [76fc0000+16520+d]
7746c521: ntdll!RtlUserThreadStart [77440000+2c500+21]

-- End of report

Original comment by ja...@krieger.ws on 8 Dec 2012 at 12:11

Attachments: