title: gstreamer wrong colors when converting h264 to raw RGB
body: <p>I have stream on one computer using this command:</p>
  
  <pre><code>gst-launch-1.0 -e v4l2src do-timestamp=true ! video264,width=1296,height=730,framerate=30/1 ! h264parse !  rtph264pay config-interval=1 ! gdppay ! udpsink host=192.168.1.116 port=5000
  </code></pre>
  
  <p>So the output is h264 in YU12 format. I need this format in raw RGB, so on receiver site I use:</p>
  
  <pre><code>gst-launch-1.0 -v udpsrc port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! decodebin ! videoconvert ! video/x-raw,format=\(string\)RGB ! videoconvert !  fpsdisplaysink sync=false text-overlay=true
  </code></pre>
  
  <p>Which results in image with right colors, as you can see bellow:
  <img src="https://i.stack.imgur.com/AVxkg.png" alt="fpsdisplaysink is ok"></p>
  
  <p>However when I pipe this output to other program, and I tried custom one which converts rgb frames to textures and also ffplay with parameter pix_fmt rgb24, the colors are wrong and the picture is shifted in some weird way.
  <img src="https://i.stack.imgur.com/MKmXW.jpg" alt="wrong colors with piped output"></p>
  
  <p>What is weird is when I try bgr the red color was correct in second output the fdisplaysink one didn't change.</p>
  
  <p>I am using <code>gst-launch-1.0 --version
  gst-launch-1.0 version 1.4.5
  GStreamer 1.4.5
  </code></p>
  
  <p>Any help is appreciated.</p>