matroskaenc: correctly handle h264 streams with 3 bytes nal startcodes
authorAurelien Jacobs <aurel@gnuage.org>
Tue, 20 Jan 2009 00:52:12 +0000 (00:52 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Tue, 20 Jan 2009 00:52:12 +0000 (00:52 +0000)
commit5f8bae8d5c19460b663527eb6359aa1975d45cea
tree4b8285a0dd981301d9175d5d4eb1c11f25f00b5c
parentc2fef0c1631449a252b4f572c95b6161a76e6d34
matroskaenc: correctly handle h264 streams with 3 bytes nal startcodes
This implies using ff_avc_parse_nal_units_buf instead of ff_avc_parse_nal_units
because with 3 bytes startcodes the parsed packet size will change, and the
size must be written before the packet content.

Originally committed as revision 16690 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskaenc.c