Add additional error check when creating ffmpeg audio buffers

Several crashes have been reported where |frames_required| is 0.
Add additional check in case ffmpeg reports incorrect values.

BUG=320806
TEST=media_unittests all pass

Review URL: https://codereview.chromium.org/74543004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236305 0039d316-1c4b-4281-b951-d872f2087c98
Allows a single tab to be draggable from a maximized browser on ash. This allows that tab to be dropped and attached to another maximized browser.

BUG=319205

Review URL: https://codereview.chromium.org/77013003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236306 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 236305
Fix a size check error in PpbBuffer::SetSize().

BUG=321420
TEST=none

Review URL: https://codereview.chromium.org/77023005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236307 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 236307