Re: [FFmpeg-devel] Is it legal to modify h264 sps for cropping

2017-04-21 Thread Xiaolei Yu
On 04/21/2017 10:15 PM, Hendrik Leppkes wrote: > On Fri, Apr 21, 2017 at 3:34 PM, Xiaolei Yu wrote: >> Some android devices do not properly align the input surface of MediaCodec >> (Nexus 4, Galxy Note 2) and >> we are forced to specify a multiple of 16 as the video width. A possible >> workarou

Re: [FFmpeg-devel] Is it legal to modify h264 sps for cropping

2017-04-21 Thread Hendrik Leppkes
On Fri, Apr 21, 2017 at 3:34 PM, Xiaolei Yu wrote: > Some android devices do not properly align the input surface of MediaCodec > (Nexus 4, Galxy Note 2) and > we are forced to specify a multiple of 16 as the video width. A possible > workaround is to insert the desired crop > into the output sp

[FFmpeg-devel] Is it legal to modify h264 sps for cropping

2017-04-21 Thread Xiaolei Yu
Some android devices do not properly align the input surface of MediaCodec (Nexus 4, Galxy Note 2) and we are forced to specify a multiple of 16 as the video width. A possible workaround is to insert the desired crop into the output sps, but I am not sure if it is legal. ___