Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F FFmpeg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sixue.cheng
  • FFmpeg
  • Repository

Switch branch/tag
  • ffmpeg
  • libavcodec
  • s302m.c
Find file BlameHistoryPermalink
  • Andreas Cadhalpun's avatar
    s302m: fix arithmetic exception · 04dfbc94
    Andreas Cadhalpun authored Jun 26, 2015
    
    
    If nb_samples is zero, the bit_rate calculation results in a division by
    zero.
    
    Since ff_get_buffer fails if frame->nb_samples is zero, this can be
    fixed by moving the bit_rate calculation after that function call.
    
    That also makes it possible to reuse the already calculated
    frame->nb_samples value.
    Reviewed-by: default avatarMichael Niedermayer <michaelni@gmx.at>
    Signed-off-by: default avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
    04dfbc94

Replace s302m.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.