v4l2_m2m: fix full reinit
|Reported by:||Jorge Ramirez-Ortiz||Owned by:||Jorge Ramirez-Ortiz|
|Blocking:||Reproduced by developer:||yes|
|Analyzed by developer:||yes|
Summary of the bug:
How to reproduce:
Decode a video stream which increases the video resolution at runtime.
The current implementation is buggy -works depending on stream and codec being used- since full-reinit closes the v4l2 file descriptor and therefore loses important header information used by the hardware.
Initially I assumed it to be a hardware/driver issue - the platforms used to test had a common bug in its driver that hid the issue- but further analysis revealed it is just a simple bug (2 man/day to fix)
 dragon board 820c: works correctly
 dragon board 410c: only h263 works
I will submit a fix in the coming weeks.
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.