[FFmpeg-devel] BFI video decoder

Sisir Koppaka sisir.koppaka
Thu Apr 17 20:53:47 CEST 2008


Updated decoder attached.

I haven't used the refactored version of the length bound checking because
this was a bit clearer. Each frame appears to be continuously displaced
towards right and hence it's getting murky by the end of the video. So, I
put in some av_log's to see what was happening, and this was the output:

sisir at sisir-laptop:~/Desktop/ffmpegcompile/trunk$ ./ffplay -an
~/Desktop/bfi/2287.bfi
FFplay version SVN-r2, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl
  libavutil version: 49.6.0
  libavcodec version: 51.52.0
  libavformat version: 52.11.0
  libavdevice version: 52.0.0
  built on Apr 10 2008 16:08:25, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)

[DECODER] Initialization done.
[DECODER] Palette has been set.3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 5 5 5 5 5 5 5 5 5 2 3 3 3 3 3 3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 3 5 3 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 3 3 3 3 2 3
3 3 3 2 2 3 3 3 5 2 5 2 2 2 3 3 3 2 3 2 2 4 3 2 3 2 4 3 5 2 2 2 3 3 2 2 3 3
2 2 4 3 2 4 4 3 2 4 3 3 3 3 3 2 2 3 3 2 2 3 3 3 3 3 3 3 3 3 3 3 2 5 5 2 2 4
3 4 4 3 3 3 2 2 3 3 2 2 3 3 2 2 4 3 2 2 4 3 2 4 3 5 2 4 4 3 2 2 3 3 2 2 4 3
2 2 3 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 1 3
3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 3 3 1 3 3 1 3 3 3 3 3 3 3 3 3 3 3 1 3 3
1 3 3 1 3 3 3 3 3 3 3 3 3 1 3 3 3 3 1 3 3 1 3 3 3 1 3 3 3 3 3 3 3 3 3 3 1 3
3 3 1 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 3 3 1 3 3 3 1 3 3 1 1 3 3 3 3 3 3 3 3
1 3 3 3 3 3 3 3 3 3 1 3 1 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 3 1 3 3 3 3 3 3
3 3 3 3 3 1 3 3 3 1 3 3 3 3 3 3 3 3 3 1 3 3 3 3 1 3 3 3 3 3 3 1 3 3 3 3 3 1
3 3 3 3 3 3 1 3 1 3 3 3 3 1 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 3 3 3 3 3 1 3 1 3
3 3 1 3 3 3 3 3 3 3 3 1 3 3 3 3 3 1 3 3 3 3 3 3 3 3 1 3 3 1 1 3 3 3 3 1 3 3
1 3 1 3 3 3 3 3 3 3 3 1 3 3 1 3 3 1 1 3 3 3 1 3 3 3 3 3 1 4 4 4 2 2 2 2 4 1
[DECODER] Finished decoding the frame.
-----------------------
For another file:
sisir at sisir-laptop:~/Desktop/ffmpegcompile/trunk$ ./ffplay -an
~/Desktop/bfi/5082.bfi
FFplay version SVN-r2, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame
--enable-gpl
  libavutil version: 49.6.0
  libavcodec version: 51.52.0
  libavformat version: 52.11.0
  libavdevice version: 52.0.0
  built on Apr 10 2008 16:08:25, gcc: 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)

[DECODER] Initialization done.
[DECODER] Palette has been set.2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 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ER] Finished decoding the frame.
------------------------------
It seems to be breaking the bounds too frequently...what do you think?
-----------------
Sisir Koppaka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfi.c
Type: text/x-csrc
Size: 6271 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080418/38cc4036/attachment.c>



More information about the ffmpeg-devel mailing list