After searching for hours i found it was a bug in my JNI-Code.
It works as expected. No reordering needed!
Nevermind!
Am 19.06.2012 16:16, schrieb Christian Brümmer:
Hi,
i m struggeling while sending the AVCodecContext.extradata (as it is)
via Network through a Android-Device which is parsing those
informations to the ffmpeg (NDK) decoder. If i use the extradata on
the same PC twice for encoding and decoding it works very well but if
i try to send it over network to the phone i get "non existing pps 0
referenced" which means wrong pps informations.
I know the Endianness of the Windows machine is Little-Endian - the
network byteorder is Big-Endian - and the Android-Device is
Little-Endian (Java: ByteOrder.nativeOrder() -> Little-Endian). If i
try to transfer Integervalues as Bytestream i have to reorder to
Little-Endian to get the right representation on the Android-Device.
I dont know if the Byte-Array containing the SPS and PPS informations
(uint8_*) has to be swapped in any way? In case of a bytestream which
gets encoded by ffmpeg i thoughts its nothing i have to worry about.
Of course it could be a problem with the parsing/communication - but i
want to get sure to be right.
Best regards,
Christian
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user