Fix ffmpeg build issues with 0.6/0.7.
Fix ffmpeg build issues with 0.6/0.7.

Using LIBAVFORMAT_VERSION_MAJOR to pick appropriate API. Tested with FFMPEG
0.6.5 (LIBAVFORMAT_VERSION 52.64.2), 0.7.1 (LIBAVFORMAT_VERSION 52.111.0), and
0.11.1 (LIBAVFORMAT_VERSION 54.6.100).

Change-Id: I9f0460f1adeace15eaf7a72a318caa2aa58ab5c4

collects/VTK,hendradarwin/VTK,keithroe/vtkoptix,ashray/VTK-EVM,biddisco/VTK,demarle/VTK,jmerkow/VTK,collects/VTK,aashish24/VTK-old,berendkleinhaneveld/VTK,msmolens/VTK,mspark93/VTK,johnkit/vtk-dev,demarle/VTK,berendkleinhaneveld/VTK,SimVascular/VTK,biddisco/VTK,SimVascular/VTK,sumedhasingla/VTK,SimVascular/VTK,jmerkow/VTK,hendradarwin/VTK,ashray/VTK-EVM,biddisco/VTK,keithroe/vtkoptix,sankhesh/VTK,sumedhasingla/VTK,ashray/VTK-EVM,jmerkow/VTK,berendkleinhaneveld/VTK,ashray/VTK-EVM,sankhesh/VTK,johnkit/vtk-dev,candy7393/VTK,gram526/VTK,ashray/VTK-EVM,msmolens/VTK,collects/VTK,candy7393/VTK,berendkleinhaneveld/VTK,keithroe/vtkoptix,jmerkow/VTK,hendradarwin/VTK,sumedhasingla/VTK,johnkit/vtk-dev,collects/VTK,berendkleinhaneveld/VTK,collects/VTK,candy7393/VTK,mspark93/VTK,jmerkow/VTK,hendradarwin/VTK,mspark93/VTK,SimVascular/VTK,candy7393/VTK,msmolens/VTK,msmolens/VTK,sankhesh/VTK,collects/VTK,hendradarwin/VTK,demarle/VTK,aashish24/VTK-old,gram526/VTK,sumedhasingla/VTK,jmerkow/VTK,SimVascular/VTK,SimVascular/VTK,johnkit/vtk-dev,msmolens/VTK,gram526/VTK,SimVascular/VTK,sumedhasingla/VTK,johnkit/vtk-dev,msmolens/VTK,biddisco/VTK,biddisco/VTK,candy7393/VTK,SimVascular/VTK,keithroe/vtkoptix,gram526/VTK,aashish24/VTK-old,sumedhasingla/VTK,biddisco/VTK,demarle/VTK,sankhesh/VTK,aashish24/VTK-old,mspark93/VTK,msmolens/VTK,sankhesh/VTK,aashish24/VTK-old,sumedhasingla/VTK,gram526/VTK,sankhesh/VTK,sankhesh/VTK,ashray/VTK-EVM,mspark93/VTK,keithroe/vtkoptix,demarle/VTK,johnkit/vtk-dev,candy7393/VTK,keithroe/vtkoptix,candy7393/VTK,berendkleinhaneveld/VTK,msmolens/VTK,aashish24/VTK-old,jmerkow/VTK,gram526/VTK,sankhesh/VTK,demarle/VTK,mspark93/VTK,ashray/VTK-EVM,mspark93/VTK,mspark93/VTK,candy7393/VTK,keithroe/vtkoptix,hendradarwin/VTK,gram526/VTK,gram526/VTK,jmerkow/VTK,sumedhasingla/VTK,biddisco/VTK,demarle/VTK,johnkit/vtk-dev,demarle/VTK,keithroe/vtkoptix,berendkleinhaneveld/VTK,ashray/VTK-EVM,hendradarwin/VTK