Skip to content

Commit

Permalink
dvbmediasink: accept h264 early NALU caps (workaround)
Browse files Browse the repository at this point in the history
Recent changes in h264parse forward caps without width and height and we have
to accept those caps in order to get later updated caps with more information.

Here is the description why that happens:

The problem here is that the AU delimiter appears in MPEG-TS streams before any
SPS/PPS, and needs to be forwarded. h264parse has no code to hold back the NALU
until caps have been determined (and implementing that right might be
problematic) - so it needs to set some caps and push the AU before it knows
anything more specific about the stream.

The caps might get updated again later if there are SEI packets that provide
more information again.

https://bugzilla.gnome.org/show_bug.cgi?id=755885
(cherry picked from commit 2c962d9)
Signed-off-by: Erik Slagter <erik@openpli.org>
  • Loading branch information
athoik authored and eriksl committed Dec 11, 2015
1 parent be2b48d commit 0853f31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gstdvbvideosink.c
Expand Up @@ -197,6 +197,9 @@ GST_STATIC_PAD_TEMPLATE (
#ifdef HAVE_H264
"video/x-h264, "
VIDEO_CAPS "; "
"video/x-h264, "
"parsed = (boolean) true, "
"alignment = (string) nal; "
#endif
#ifdef HAVE_H263
"video/x-h263, "
Expand Down

0 comments on commit 0853f31

Please sign in to comment.