baseparse: Need push remaining data in adapter when switching to pass through mode
Submitted by Lyon
Link to original bug (#760513)
Description
When we are trying to play some h264/avi streams, with our own parser plugin linked with h264parse and then avdec_h264, there will be some corrupt video be observed. while using avidemux link with h264parse, it plays well.
After doing some investigation.
-
avdec_h264 only support alignment au format.
-
and avidemux output caps not specify the alignment as "au"
So h264parse will do the parse to convert alignment to "au" -
however, when using our own parser plugin, the output plugins already set the video as alignment "au", so that h264parse work in pass through mode.
But it seems the h264parse's output lost the sps/pps data in the begging, which cause the video decoding error for some frames.
So it maybe bugs in h264parse pass through mode, suppose in pass through mode, the output should be the same as when h246parse not linked in the pipeline.
I'm not sure if this issue has been raised before, so I recorded the issue here
Thanks a lot ~
Version: 1.6.0