use write_encoder_output_frame to write file,the result is " 0 0 0 1 67",not "0 0 0 1 97"

I have a question in 01_video_encode of tegra_multimedia_api,the write_encoder_output_frame function:
stream->write((char *)buffer->planes[0].data, buffer->planes[0].bytesused);

printf(“buffer->planes[0].bytesused %d\n”, buffer->planes[0].bytesused);
printf(“buffer->planes[0].data[0] %d %d %d %d %d\n”, buffer->planes[0].data[0], buffer->planes[0].data[1], buffer->planes[0].data[2], buffer->planes[0].data[3], buffer->planes[0].data[4]);

I print this,output is
“buffer->planes[0].bytesused 3209
buffer->planes[0].data[0] 0 0 0 1 97”
but there is not “0 0 0 1 97"in the written output file,only h264 nalu,for example " 0 0 0 1 65”,“0 0 0 1 67”.
Please tell me the reason when you know the answer.Thank you very much !!!

Hi,
You should print in %x. It is hex 00 00 00 01 61, which indicates H264_NAL_UNIT_CODED_SLICE.
We have simple code of h264 parsing in 00_video_decode. Please take a look.

For complete code of h264 parsing, you can refer to JM decoder or ffmpeg.

Hi DaneLLL,
I made a mistake,thank you very much for your reply!