avcodecmap: Only set the bitrate if we actually got it from the caps
authorSebastian Dröge <sebastian@centricular.com>
Fri, 11 Mar 2016 13:44:16 +0000 (15:44 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 11 Mar 2016 13:44:16 +0000 (15:44 +0200)
commit34fe6af6da642d58a254ebe2c045af353c8fb52f
treeab4fe2943feac73b15d7de339878ad89a5b890a2
parent6655aabebccdf390804b3e35663dfe97151200b8
avcodecmap: Only set the bitrate if we actually got it from the caps

Otherwise we set a random value from the stack as bitrate. The default (0)
is a better choice and doesn't upset valgrind.
ext/libav/gstavcodecmap.c