On Mon, Sep 30, 2013 at 03:14:41PM +0200, Vittorio Giovara wrote:
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -164,8 +166,31 @@ static int X264_frame(AVCodecContext *ctx, AVPacket 
> *pkt, const AVFrame *frame,
>  
> +        side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_STEREO3D);
> +        if (side_data) {
> +            AVStereo3D *stereo = (AVStereo3D *)side_data->data;
> +            int fpa_type;
> +
> +            switch (stereo->type) {
> +                case AV_STEREO3D_CHECKERS:      fpa_type =  0; break;
> +                case AV_STEREO3D_LINES:         fpa_type =  1; break;
> +                case AV_STEREO3D_COLUMNS:       fpa_type =  2; break;
> +                case AV_STEREO3D_SIDEBYSIDE:    fpa_type =  3; break;
> +                case AV_STEREO3D_TOPBOTTOM:     fpa_type =  4; break;
> +                case AV_STEREO3D_FRAMESEQUENCE: fpa_type =  5; break;
> +                /* not yet supported by x264
> +                case AV_STEREO3D_NOT_REALLY:    fpa_type =  6; break;
> +                 */
> +                default:                        fpa_type = -1; break;

Indent case at the same level as switch and break those lines.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to